rados.h 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420
  1. #ifndef CEPH_RADOS_H
  2. #define CEPH_RADOS_H
  3. /*
  4. * Data types for the Ceph distributed object storage layer RADOS
  5. * (Reliable Autonomic Distributed Object Store).
  6. */
  7. #include <linux/ceph/msgr.h>
  8. /*
  9. * fs id
  10. */
  11. struct ceph_fsid {
  12. unsigned char fsid[16];
  13. };
  14. static inline int ceph_fsid_compare(const struct ceph_fsid *a,
  15. const struct ceph_fsid *b)
  16. {
  17. return memcmp(a, b, sizeof(*a));
  18. }
  19. /*
  20. * ino, object, etc.
  21. */
  22. typedef __le64 ceph_snapid_t;
  23. #define CEPH_SNAPDIR ((__u64)(-1)) /* reserved for hidden .snap dir */
  24. #define CEPH_NOSNAP ((__u64)(-2)) /* "head", "live" revision */
  25. #define CEPH_MAXSNAP ((__u64)(-3)) /* largest valid snapid */
  26. struct ceph_timespec {
  27. __le32 tv_sec;
  28. __le32 tv_nsec;
  29. } __attribute__ ((packed));
  30. /*
  31. * object layout - how objects are mapped into PGs
  32. */
  33. #define CEPH_OBJECT_LAYOUT_HASH 1
  34. #define CEPH_OBJECT_LAYOUT_LINEAR 2
  35. #define CEPH_OBJECT_LAYOUT_HASHINO 3
  36. /*
  37. * pg layout -- how PGs are mapped onto (sets of) OSDs
  38. */
  39. #define CEPH_PG_LAYOUT_CRUSH 0
  40. #define CEPH_PG_LAYOUT_HASH 1
  41. #define CEPH_PG_LAYOUT_LINEAR 2
  42. #define CEPH_PG_LAYOUT_HYBRID 3
  43. #define CEPH_PG_MAX_SIZE 16 /* max # osds in a single pg */
  44. /*
  45. * placement group.
  46. * we encode this into one __le64.
  47. */
  48. struct ceph_pg_v1 {
  49. __le16 preferred; /* preferred primary osd */
  50. __le16 ps; /* placement seed */
  51. __le32 pool; /* object pool */
  52. } __attribute__ ((packed));
  53. /*
  54. * pg_pool is a set of pgs storing a pool of objects
  55. *
  56. * pg_num -- base number of pseudorandomly placed pgs
  57. *
  58. * pgp_num -- effective number when calculating pg placement. this
  59. * is used for pg_num increases. new pgs result in data being "split"
  60. * into new pgs. for this to proceed smoothly, new pgs are intiially
  61. * colocated with their parents; that is, pgp_num doesn't increase
  62. * until the new pgs have successfully split. only _then_ are the new
  63. * pgs placed independently.
  64. *
  65. * lpg_num -- localized pg count (per device). replicas are randomly
  66. * selected.
  67. *
  68. * lpgp_num -- as above.
  69. */
  70. #define CEPH_NOPOOL ((__u64) (-1)) /* pool id not defined */
  71. #define CEPH_PG_TYPE_REP 1
  72. #define CEPH_PG_TYPE_RAID4 2
  73. /*
  74. * stable_mod func is used to control number of placement groups.
  75. * similar to straight-up modulo, but produces a stable mapping as b
  76. * increases over time. b is the number of bins, and bmask is the
  77. * containing power of 2 minus 1.
  78. *
  79. * b <= bmask and bmask=(2**n)-1
  80. * e.g., b=12 -> bmask=15, b=123 -> bmask=127
  81. */
  82. static inline int ceph_stable_mod(int x, int b, int bmask)
  83. {
  84. if ((x & bmask) < b)
  85. return x & bmask;
  86. else
  87. return x & (bmask >> 1);
  88. }
  89. /*
  90. * object layout - how a given object should be stored.
  91. */
  92. struct ceph_object_layout {
  93. struct ceph_pg_v1 ol_pgid; /* raw pg, with _full_ ps precision. */
  94. __le32 ol_stripe_unit; /* for per-object parity, if any */
  95. } __attribute__ ((packed));
  96. /*
  97. * compound epoch+version, used by storage layer to serialize mutations
  98. */
  99. struct ceph_eversion {
  100. __le32 epoch;
  101. __le64 version;
  102. } __attribute__ ((packed));
  103. /*
  104. * osd map bits
  105. */
  106. /* status bits */
  107. #define CEPH_OSD_EXISTS (1<<0)
  108. #define CEPH_OSD_UP (1<<1)
  109. #define CEPH_OSD_AUTOOUT (1<<2) /* osd was automatically marked out */
  110. #define CEPH_OSD_NEW (1<<3) /* osd is new, never marked in */
  111. extern const char *ceph_osd_state_name(int s);
  112. /* osd weights. fixed point value: 0x10000 == 1.0 ("in"), 0 == "out" */
  113. #define CEPH_OSD_IN 0x10000
  114. #define CEPH_OSD_OUT 0
  115. /*
  116. * osd map flag bits
  117. */
  118. #define CEPH_OSDMAP_NEARFULL (1<<0) /* sync writes (near ENOSPC) */
  119. #define CEPH_OSDMAP_FULL (1<<1) /* no data writes (ENOSPC) */
  120. #define CEPH_OSDMAP_PAUSERD (1<<2) /* pause all reads */
  121. #define CEPH_OSDMAP_PAUSEWR (1<<3) /* pause all writes */
  122. #define CEPH_OSDMAP_PAUSEREC (1<<4) /* pause recovery */
  123. #define CEPH_OSDMAP_NOUP (1<<5) /* block osd boot */
  124. #define CEPH_OSDMAP_NODOWN (1<<6) /* block osd mark-down/failure */
  125. #define CEPH_OSDMAP_NOOUT (1<<7) /* block osd auto mark-out */
  126. #define CEPH_OSDMAP_NOIN (1<<8) /* block osd auto mark-in */
  127. #define CEPH_OSDMAP_NOBACKFILL (1<<9) /* block osd backfill */
  128. #define CEPH_OSDMAP_NORECOVER (1<<10) /* block osd recovery and backfill */
  129. /*
  130. * The error code to return when an OSD can't handle a write
  131. * because it is too large.
  132. */
  133. #define OSD_WRITETOOBIG EMSGSIZE
  134. /*
  135. * osd ops
  136. *
  137. * WARNING: do not use these op codes directly. Use the helpers
  138. * defined below instead. In certain cases, op code behavior was
  139. * redefined, resulting in special-cases in the helpers.
  140. */
  141. #define CEPH_OSD_OP_MODE 0xf000
  142. #define CEPH_OSD_OP_MODE_RD 0x1000
  143. #define CEPH_OSD_OP_MODE_WR 0x2000
  144. #define CEPH_OSD_OP_MODE_RMW 0x3000
  145. #define CEPH_OSD_OP_MODE_SUB 0x4000
  146. #define CEPH_OSD_OP_TYPE 0x0f00
  147. #define CEPH_OSD_OP_TYPE_LOCK 0x0100
  148. #define CEPH_OSD_OP_TYPE_DATA 0x0200
  149. #define CEPH_OSD_OP_TYPE_ATTR 0x0300
  150. #define CEPH_OSD_OP_TYPE_EXEC 0x0400
  151. #define CEPH_OSD_OP_TYPE_PG 0x0500
  152. #define CEPH_OSD_OP_TYPE_MULTI 0x0600 /* multiobject */
  153. enum {
  154. /** data **/
  155. /* read */
  156. CEPH_OSD_OP_READ = CEPH_OSD_OP_MODE_RD | CEPH_OSD_OP_TYPE_DATA | 1,
  157. CEPH_OSD_OP_STAT = CEPH_OSD_OP_MODE_RD | CEPH_OSD_OP_TYPE_DATA | 2,
  158. CEPH_OSD_OP_MAPEXT = CEPH_OSD_OP_MODE_RD | CEPH_OSD_OP_TYPE_DATA | 3,
  159. /* fancy read */
  160. CEPH_OSD_OP_MASKTRUNC = CEPH_OSD_OP_MODE_RD | CEPH_OSD_OP_TYPE_DATA | 4,
  161. CEPH_OSD_OP_SPARSE_READ = CEPH_OSD_OP_MODE_RD | CEPH_OSD_OP_TYPE_DATA | 5,
  162. CEPH_OSD_OP_NOTIFY = CEPH_OSD_OP_MODE_RD | CEPH_OSD_OP_TYPE_DATA | 6,
  163. CEPH_OSD_OP_NOTIFY_ACK = CEPH_OSD_OP_MODE_RD | CEPH_OSD_OP_TYPE_DATA | 7,
  164. /* versioning */
  165. CEPH_OSD_OP_ASSERT_VER = CEPH_OSD_OP_MODE_RD | CEPH_OSD_OP_TYPE_DATA | 8,
  166. /* write */
  167. CEPH_OSD_OP_WRITE = CEPH_OSD_OP_MODE_WR | CEPH_OSD_OP_TYPE_DATA | 1,
  168. CEPH_OSD_OP_WRITEFULL = CEPH_OSD_OP_MODE_WR | CEPH_OSD_OP_TYPE_DATA | 2,
  169. CEPH_OSD_OP_TRUNCATE = CEPH_OSD_OP_MODE_WR | CEPH_OSD_OP_TYPE_DATA | 3,
  170. CEPH_OSD_OP_ZERO = CEPH_OSD_OP_MODE_WR | CEPH_OSD_OP_TYPE_DATA | 4,
  171. CEPH_OSD_OP_DELETE = CEPH_OSD_OP_MODE_WR | CEPH_OSD_OP_TYPE_DATA | 5,
  172. /* fancy write */
  173. CEPH_OSD_OP_APPEND = CEPH_OSD_OP_MODE_WR | CEPH_OSD_OP_TYPE_DATA | 6,
  174. CEPH_OSD_OP_STARTSYNC = CEPH_OSD_OP_MODE_WR | CEPH_OSD_OP_TYPE_DATA | 7,
  175. CEPH_OSD_OP_SETTRUNC = CEPH_OSD_OP_MODE_WR | CEPH_OSD_OP_TYPE_DATA | 8,
  176. CEPH_OSD_OP_TRIMTRUNC = CEPH_OSD_OP_MODE_WR | CEPH_OSD_OP_TYPE_DATA | 9,
  177. CEPH_OSD_OP_TMAPUP = CEPH_OSD_OP_MODE_RMW | CEPH_OSD_OP_TYPE_DATA | 10,
  178. CEPH_OSD_OP_TMAPPUT = CEPH_OSD_OP_MODE_WR | CEPH_OSD_OP_TYPE_DATA | 11,
  179. CEPH_OSD_OP_TMAPGET = CEPH_OSD_OP_MODE_RD | CEPH_OSD_OP_TYPE_DATA | 12,
  180. CEPH_OSD_OP_CREATE = CEPH_OSD_OP_MODE_WR | CEPH_OSD_OP_TYPE_DATA | 13,
  181. CEPH_OSD_OP_ROLLBACK= CEPH_OSD_OP_MODE_WR | CEPH_OSD_OP_TYPE_DATA | 14,
  182. CEPH_OSD_OP_WATCH = CEPH_OSD_OP_MODE_WR | CEPH_OSD_OP_TYPE_DATA | 15,
  183. /* omap */
  184. CEPH_OSD_OP_OMAPGETKEYS = CEPH_OSD_OP_MODE_RD | CEPH_OSD_OP_TYPE_DATA | 17,
  185. CEPH_OSD_OP_OMAPGETVALS = CEPH_OSD_OP_MODE_RD | CEPH_OSD_OP_TYPE_DATA | 18,
  186. CEPH_OSD_OP_OMAPGETHEADER = CEPH_OSD_OP_MODE_RD | CEPH_OSD_OP_TYPE_DATA | 19,
  187. CEPH_OSD_OP_OMAPGETVALSBYKEYS =
  188. CEPH_OSD_OP_MODE_RD | CEPH_OSD_OP_TYPE_DATA | 20,
  189. CEPH_OSD_OP_OMAPSETVALS = CEPH_OSD_OP_MODE_WR | CEPH_OSD_OP_TYPE_DATA | 21,
  190. CEPH_OSD_OP_OMAPSETHEADER = CEPH_OSD_OP_MODE_WR | CEPH_OSD_OP_TYPE_DATA | 22,
  191. CEPH_OSD_OP_OMAPCLEAR = CEPH_OSD_OP_MODE_WR | CEPH_OSD_OP_TYPE_DATA | 23,
  192. CEPH_OSD_OP_OMAPRMKEYS = CEPH_OSD_OP_MODE_WR | CEPH_OSD_OP_TYPE_DATA | 24,
  193. CEPH_OSD_OP_OMAP_CMP = CEPH_OSD_OP_MODE_RD | CEPH_OSD_OP_TYPE_DATA | 25,
  194. /** multi **/
  195. CEPH_OSD_OP_CLONERANGE = CEPH_OSD_OP_MODE_WR | CEPH_OSD_OP_TYPE_MULTI | 1,
  196. CEPH_OSD_OP_ASSERT_SRC_VERSION = CEPH_OSD_OP_MODE_RD | CEPH_OSD_OP_TYPE_MULTI | 2,
  197. CEPH_OSD_OP_SRC_CMPXATTR = CEPH_OSD_OP_MODE_RD | CEPH_OSD_OP_TYPE_MULTI | 3,
  198. /** attrs **/
  199. /* read */
  200. CEPH_OSD_OP_GETXATTR = CEPH_OSD_OP_MODE_RD | CEPH_OSD_OP_TYPE_ATTR | 1,
  201. CEPH_OSD_OP_GETXATTRS = CEPH_OSD_OP_MODE_RD | CEPH_OSD_OP_TYPE_ATTR | 2,
  202. CEPH_OSD_OP_CMPXATTR = CEPH_OSD_OP_MODE_RD | CEPH_OSD_OP_TYPE_ATTR | 3,
  203. /* write */
  204. CEPH_OSD_OP_SETXATTR = CEPH_OSD_OP_MODE_WR | CEPH_OSD_OP_TYPE_ATTR | 1,
  205. CEPH_OSD_OP_SETXATTRS = CEPH_OSD_OP_MODE_WR | CEPH_OSD_OP_TYPE_ATTR | 2,
  206. CEPH_OSD_OP_RESETXATTRS = CEPH_OSD_OP_MODE_WR|CEPH_OSD_OP_TYPE_ATTR | 3,
  207. CEPH_OSD_OP_RMXATTR = CEPH_OSD_OP_MODE_WR | CEPH_OSD_OP_TYPE_ATTR | 4,
  208. /** subop **/
  209. CEPH_OSD_OP_PULL = CEPH_OSD_OP_MODE_SUB | 1,
  210. CEPH_OSD_OP_PUSH = CEPH_OSD_OP_MODE_SUB | 2,
  211. CEPH_OSD_OP_BALANCEREADS = CEPH_OSD_OP_MODE_SUB | 3,
  212. CEPH_OSD_OP_UNBALANCEREADS = CEPH_OSD_OP_MODE_SUB | 4,
  213. CEPH_OSD_OP_SCRUB = CEPH_OSD_OP_MODE_SUB | 5,
  214. CEPH_OSD_OP_SCRUB_RESERVE = CEPH_OSD_OP_MODE_SUB | 6,
  215. CEPH_OSD_OP_SCRUB_UNRESERVE = CEPH_OSD_OP_MODE_SUB | 7,
  216. CEPH_OSD_OP_SCRUB_STOP = CEPH_OSD_OP_MODE_SUB | 8,
  217. CEPH_OSD_OP_SCRUB_MAP = CEPH_OSD_OP_MODE_SUB | 9,
  218. /** lock **/
  219. CEPH_OSD_OP_WRLOCK = CEPH_OSD_OP_MODE_WR | CEPH_OSD_OP_TYPE_LOCK | 1,
  220. CEPH_OSD_OP_WRUNLOCK = CEPH_OSD_OP_MODE_WR | CEPH_OSD_OP_TYPE_LOCK | 2,
  221. CEPH_OSD_OP_RDLOCK = CEPH_OSD_OP_MODE_WR | CEPH_OSD_OP_TYPE_LOCK | 3,
  222. CEPH_OSD_OP_RDUNLOCK = CEPH_OSD_OP_MODE_WR | CEPH_OSD_OP_TYPE_LOCK | 4,
  223. CEPH_OSD_OP_UPLOCK = CEPH_OSD_OP_MODE_WR | CEPH_OSD_OP_TYPE_LOCK | 5,
  224. CEPH_OSD_OP_DNLOCK = CEPH_OSD_OP_MODE_WR | CEPH_OSD_OP_TYPE_LOCK | 6,
  225. /** exec **/
  226. /* note: the RD bit here is wrong; see special-case below in helper */
  227. CEPH_OSD_OP_CALL = CEPH_OSD_OP_MODE_RD | CEPH_OSD_OP_TYPE_EXEC | 1,
  228. /** pg **/
  229. CEPH_OSD_OP_PGLS = CEPH_OSD_OP_MODE_RD | CEPH_OSD_OP_TYPE_PG | 1,
  230. CEPH_OSD_OP_PGLS_FILTER = CEPH_OSD_OP_MODE_RD | CEPH_OSD_OP_TYPE_PG | 2,
  231. };
  232. static inline int ceph_osd_op_type_lock(int op)
  233. {
  234. return (op & CEPH_OSD_OP_TYPE) == CEPH_OSD_OP_TYPE_LOCK;
  235. }
  236. static inline int ceph_osd_op_type_data(int op)
  237. {
  238. return (op & CEPH_OSD_OP_TYPE) == CEPH_OSD_OP_TYPE_DATA;
  239. }
  240. static inline int ceph_osd_op_type_attr(int op)
  241. {
  242. return (op & CEPH_OSD_OP_TYPE) == CEPH_OSD_OP_TYPE_ATTR;
  243. }
  244. static inline int ceph_osd_op_type_exec(int op)
  245. {
  246. return (op & CEPH_OSD_OP_TYPE) == CEPH_OSD_OP_TYPE_EXEC;
  247. }
  248. static inline int ceph_osd_op_type_pg(int op)
  249. {
  250. return (op & CEPH_OSD_OP_TYPE) == CEPH_OSD_OP_TYPE_PG;
  251. }
  252. static inline int ceph_osd_op_type_multi(int op)
  253. {
  254. return (op & CEPH_OSD_OP_TYPE) == CEPH_OSD_OP_TYPE_MULTI;
  255. }
  256. static inline int ceph_osd_op_mode_subop(int op)
  257. {
  258. return (op & CEPH_OSD_OP_MODE) == CEPH_OSD_OP_MODE_SUB;
  259. }
  260. static inline int ceph_osd_op_mode_read(int op)
  261. {
  262. return (op & CEPH_OSD_OP_MODE_RD) &&
  263. op != CEPH_OSD_OP_CALL;
  264. }
  265. static inline int ceph_osd_op_mode_modify(int op)
  266. {
  267. return op & CEPH_OSD_OP_MODE_WR;
  268. }
  269. /*
  270. * note that the following tmap stuff is also defined in the ceph librados.h
  271. * any modification here needs to be updated there
  272. */
  273. #define CEPH_OSD_TMAP_HDR 'h'
  274. #define CEPH_OSD_TMAP_SET 's'
  275. #define CEPH_OSD_TMAP_CREATE 'c' /* create key */
  276. #define CEPH_OSD_TMAP_RM 'r'
  277. #define CEPH_OSD_TMAP_RMSLOPPY 'R'
  278. extern const char *ceph_osd_op_name(int op);
  279. /*
  280. * osd op flags
  281. *
  282. * An op may be READ, WRITE, or READ|WRITE.
  283. */
  284. enum {
  285. CEPH_OSD_FLAG_ACK = 0x0001, /* want (or is) "ack" ack */
  286. CEPH_OSD_FLAG_ONNVRAM = 0x0002, /* want (or is) "onnvram" ack */
  287. CEPH_OSD_FLAG_ONDISK = 0x0004, /* want (or is) "ondisk" ack */
  288. CEPH_OSD_FLAG_RETRY = 0x0008, /* resend attempt */
  289. CEPH_OSD_FLAG_READ = 0x0010, /* op may read */
  290. CEPH_OSD_FLAG_WRITE = 0x0020, /* op may write */
  291. CEPH_OSD_FLAG_ORDERSNAP = 0x0040, /* EOLDSNAP if snapc is out of order */
  292. CEPH_OSD_FLAG_PEERSTAT_OLD = 0x0080, /* DEPRECATED msg includes osd_peer_stat */
  293. CEPH_OSD_FLAG_BALANCE_READS = 0x0100,
  294. CEPH_OSD_FLAG_PARALLELEXEC = 0x0200, /* execute op in parallel */
  295. CEPH_OSD_FLAG_PGOP = 0x0400, /* pg op, no object */
  296. CEPH_OSD_FLAG_EXEC = 0x0800, /* op may exec */
  297. CEPH_OSD_FLAG_EXEC_PUBLIC = 0x1000, /* DEPRECATED op may exec (public) */
  298. CEPH_OSD_FLAG_LOCALIZE_READS = 0x2000, /* read from nearby replica, if any */
  299. CEPH_OSD_FLAG_RWORDERED = 0x4000, /* order wrt concurrent reads */
  300. };
  301. enum {
  302. CEPH_OSD_OP_FLAG_EXCL = 1, /* EXCL object create */
  303. CEPH_OSD_OP_FLAG_FAILOK = 2, /* continue despite failure */
  304. };
  305. #define EOLDSNAPC ERESTART /* ORDERSNAP flag set; writer has old snapc*/
  306. #define EBLACKLISTED ESHUTDOWN /* blacklisted */
  307. /* xattr comparison */
  308. enum {
  309. CEPH_OSD_CMPXATTR_OP_NOP = 0,
  310. CEPH_OSD_CMPXATTR_OP_EQ = 1,
  311. CEPH_OSD_CMPXATTR_OP_NE = 2,
  312. CEPH_OSD_CMPXATTR_OP_GT = 3,
  313. CEPH_OSD_CMPXATTR_OP_GTE = 4,
  314. CEPH_OSD_CMPXATTR_OP_LT = 5,
  315. CEPH_OSD_CMPXATTR_OP_LTE = 6
  316. };
  317. enum {
  318. CEPH_OSD_CMPXATTR_MODE_STRING = 1,
  319. CEPH_OSD_CMPXATTR_MODE_U64 = 2
  320. };
  321. #define RADOS_NOTIFY_VER 1
  322. /*
  323. * an individual object operation. each may be accompanied by some data
  324. * payload
  325. */
  326. struct ceph_osd_op {
  327. __le16 op; /* CEPH_OSD_OP_* */
  328. __le32 flags; /* CEPH_OSD_FLAG_* */
  329. union {
  330. struct {
  331. __le64 offset, length;
  332. __le64 truncate_size;
  333. __le32 truncate_seq;
  334. } __attribute__ ((packed)) extent;
  335. struct {
  336. __le32 name_len;
  337. __le32 value_len;
  338. __u8 cmp_op; /* CEPH_OSD_CMPXATTR_OP_* */
  339. __u8 cmp_mode; /* CEPH_OSD_CMPXATTR_MODE_* */
  340. } __attribute__ ((packed)) xattr;
  341. struct {
  342. __u8 class_len;
  343. __u8 method_len;
  344. __u8 argc;
  345. __le32 indata_len;
  346. } __attribute__ ((packed)) cls;
  347. struct {
  348. __le64 cookie, count;
  349. } __attribute__ ((packed)) pgls;
  350. struct {
  351. __le64 snapid;
  352. } __attribute__ ((packed)) snap;
  353. struct {
  354. __le64 cookie;
  355. __le64 ver;
  356. __u8 flag; /* 0 = unwatch, 1 = watch */
  357. } __attribute__ ((packed)) watch;
  358. struct {
  359. __le64 offset, length;
  360. __le64 src_offset;
  361. } __attribute__ ((packed)) clonerange;
  362. };
  363. __le32 payload_len;
  364. } __attribute__ ((packed));
  365. #endif