CHECK_MEMBER(mds_body, handle);
CHECK_MEMBER(mds_body, size);
CHECK_MEMBER(mds_body, blocks);
+ CHECK_MEMBER(mds_body, io_epoch);
CHECK_MEMBER(mds_body, ino);
CHECK_MEMBER(mds_body, valid);
CHECK_MEMBER(mds_body, fsuid);
CHECK_MEMBER(mds_body, generation);
CHECK_MEMBER(mds_body, suppgid);
CHECK_MEMBER(mds_body, eadatasize);
+
+ CHECK_VALUE(FMODE_READ);
+ CHECK_VALUE(FMODE_WRITE);
+ CHECK_VALUE(FMODE_EXEC);
+ CHECK_VALUE(MDS_OPEN_CREAT);
+ CHECK_VALUE(MDS_OPEN_EXCL);
+ CHECK_VALUE(MDS_OPEN_APPEND);
+ CHECK_VALUE(MDS_OPEN_SYNC);
+ CHECK_VALUE(MDS_OPEN_DIRECTORY);
+ CHECK_VALUE(MDS_OPEN_DELAY_CREATE);
+ CHECK_VALUE(MDS_OPEN_HAS_EA);
}
void
BLANK_LINE();
CHECK_STRUCT(llogd_body);
CHECK_MEMBER(llogd_body, lgd_logid);
- CHECK_MEMBER(llogd_body, lgd_len);
+ CHECK_MEMBER(llogd_body, lgd_ctxt_idx);
+ CHECK_MEMBER(llogd_body, lgd_llh_flags);
CHECK_MEMBER(llogd_body, lgd_index);
CHECK_MEMBER(llogd_body, lgd_saved_index);
CHECK_MEMBER(llogd_body, lgd_cur_offset);
LASSERT(MDS_DISCONNECT == 39);
LASSERT(MDS_GETSTATUS == 40);
LASSERT(MDS_STATFS == 41);
- LASSERT(MDS_LAST_OPC == 46);
+ LASSERT(MDS_LAST_OPC == 45);
LASSERT(MDS_FIRST_OPC == 33);
LASSERT(REINT_SETATTR == 1);
LASSERT(REINT_CREATE == 2);
LASSERT((int)sizeof(((struct mds_status_req *)0)->repbuf) == 4);
/* Checks for struct mds_body */
- LASSERT((int)sizeof(struct mds_body) == 128);
+ LASSERT((int)sizeof(struct mds_body) == 136);
LASSERT(offsetof(struct mds_body, fid1) == 0);
LASSERT((int)sizeof(((struct mds_body *)0)->fid1) == 16);
LASSERT(offsetof(struct mds_body, fid2) == 16);
LASSERT((int)sizeof(((struct mds_body *)0)->size) == 8);
LASSERT(offsetof(struct mds_body, blocks) == 48);
LASSERT((int)sizeof(((struct mds_body *)0)->blocks) == 8);
- LASSERT(offsetof(struct mds_body, ino) == 56);
+ LASSERT(offsetof(struct mds_body, io_epoch) == 56);
+ LASSERT((int)sizeof(((struct mds_body *)0)->io_epoch) == 8);
+ LASSERT(offsetof(struct mds_body, ino) == 64);
LASSERT((int)sizeof(((struct mds_body *)0)->ino) == 4);
- LASSERT(offsetof(struct mds_body, valid) == 60);
+ LASSERT(offsetof(struct mds_body, valid) == 68);
LASSERT((int)sizeof(((struct mds_body *)0)->valid) == 4);
- LASSERT(offsetof(struct mds_body, fsuid) == 64);
+ LASSERT(offsetof(struct mds_body, fsuid) == 72);
LASSERT((int)sizeof(((struct mds_body *)0)->fsuid) == 4);
- LASSERT(offsetof(struct mds_body, fsgid) == 68);
+ LASSERT(offsetof(struct mds_body, fsgid) == 76);
LASSERT((int)sizeof(((struct mds_body *)0)->fsgid) == 4);
- LASSERT(offsetof(struct mds_body, capability) == 72);
+ LASSERT(offsetof(struct mds_body, capability) == 80);
LASSERT((int)sizeof(((struct mds_body *)0)->capability) == 4);
- LASSERT(offsetof(struct mds_body, mode) == 76);
+ LASSERT(offsetof(struct mds_body, mode) == 84);
LASSERT((int)sizeof(((struct mds_body *)0)->mode) == 4);
- LASSERT(offsetof(struct mds_body, uid) == 80);
+ LASSERT(offsetof(struct mds_body, uid) == 88);
LASSERT((int)sizeof(((struct mds_body *)0)->uid) == 4);
- LASSERT(offsetof(struct mds_body, gid) == 84);
+ LASSERT(offsetof(struct mds_body, gid) == 92);
LASSERT((int)sizeof(((struct mds_body *)0)->gid) == 4);
- LASSERT(offsetof(struct mds_body, mtime) == 88);
+ LASSERT(offsetof(struct mds_body, mtime) == 96);
LASSERT((int)sizeof(((struct mds_body *)0)->mtime) == 4);
- LASSERT(offsetof(struct mds_body, ctime) == 92);
+ LASSERT(offsetof(struct mds_body, ctime) == 100);
LASSERT((int)sizeof(((struct mds_body *)0)->ctime) == 4);
- LASSERT(offsetof(struct mds_body, atime) == 96);
+ LASSERT(offsetof(struct mds_body, atime) == 104);
LASSERT((int)sizeof(((struct mds_body *)0)->atime) == 4);
- LASSERT(offsetof(struct mds_body, flags) == 100);
+ LASSERT(offsetof(struct mds_body, flags) == 108);
LASSERT((int)sizeof(((struct mds_body *)0)->flags) == 4);
- LASSERT(offsetof(struct mds_body, rdev) == 104);
+ LASSERT(offsetof(struct mds_body, rdev) == 112);
LASSERT((int)sizeof(((struct mds_body *)0)->rdev) == 4);
- LASSERT(offsetof(struct mds_body, nlink) == 108);
+ LASSERT(offsetof(struct mds_body, nlink) == 116);
LASSERT((int)sizeof(((struct mds_body *)0)->nlink) == 4);
- LASSERT(offsetof(struct mds_body, generation) == 112);
+ LASSERT(offsetof(struct mds_body, generation) == 120);
LASSERT((int)sizeof(((struct mds_body *)0)->generation) == 4);
- LASSERT(offsetof(struct mds_body, suppgid) == 116);
+ LASSERT(offsetof(struct mds_body, suppgid) == 124);
LASSERT((int)sizeof(((struct mds_body *)0)->suppgid) == 4);
- LASSERT(offsetof(struct mds_body, eadatasize) == 120);
+ LASSERT(offsetof(struct mds_body, eadatasize) == 128);
LASSERT((int)sizeof(((struct mds_body *)0)->eadatasize) == 4);
+ LASSERT(FMODE_READ == 1);
+ LASSERT(FMODE_WRITE == 2);
+ LASSERT(FMODE_EXEC == 4);
+ LASSERT(MDS_OPEN_CREAT == 64);
+ LASSERT(MDS_OPEN_EXCL == 128);
+ LASSERT(MDS_OPEN_APPEND == 1024);
+ LASSERT(MDS_OPEN_SYNC == 4096);
+ LASSERT(MDS_OPEN_DIRECTORY == 65536);
+ LASSERT(MDS_OPEN_DELAY_CREATE == 16777216);
+ LASSERT(MDS_OPEN_HAS_EA == 1073741824);
/* Checks for struct mds_rec_setattr */
LASSERT((int)sizeof(struct mds_rec_setattr) == 88);
LASSERT((int)sizeof(((struct llog_cookie *)0)->lgc_index) == 4);
/* Checks for struct llogd_body */
- LASSERT((int)sizeof(struct llogd_body) == 40);
+ LASSERT((int)sizeof(struct llogd_body) == 48);
LASSERT(offsetof(struct llogd_body, lgd_logid) == 0);
LASSERT((int)sizeof(((struct llogd_body *)0)->lgd_logid) == 20);
- LASSERT(offsetof(struct llogd_body, lgd_len) == 20);
- LASSERT((int)sizeof(((struct llogd_body *)0)->lgd_len) == 4);
- LASSERT(offsetof(struct llogd_body, lgd_index) == 24);
+ LASSERT(offsetof(struct llogd_body, lgd_ctxt_idx) == 20);
+ LASSERT((int)sizeof(((struct llogd_body *)0)->lgd_ctxt_idx) == 4);
+ LASSERT(offsetof(struct llogd_body, lgd_llh_flags) == 24);
+ LASSERT((int)sizeof(((struct llogd_body *)0)->lgd_llh_flags) == 4);
+ LASSERT(offsetof(struct llogd_body, lgd_index) == 28);
LASSERT((int)sizeof(((struct llogd_body *)0)->lgd_index) == 4);
- LASSERT(offsetof(struct llogd_body, lgd_saved_index) == 28);
+ LASSERT(offsetof(struct llogd_body, lgd_saved_index) == 32);
LASSERT((int)sizeof(((struct llogd_body *)0)->lgd_saved_index) == 4);
- LASSERT(offsetof(struct llogd_body, lgd_cur_offset) == 32);
+ LASSERT(offsetof(struct llogd_body, lgd_cur_offset) == 40);
LASSERT((int)sizeof(((struct llogd_body *)0)->lgd_cur_offset) == 8);
LASSERT(LLOG_ORIGIN_HANDLE_CREATE == 501);
LASSERT(LLOG_ORIGIN_HANDLE_NEXT_BLOCK == 502);