X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Finclude%2Flustre%2Flustre_idl.h;h=99bbc2fa8299a4fb59e943c58b9a1c9eabbe4bf8;hp=d0580ce096041fc3b6cb1765c4e4b93829ae7ce6;hb=4f91d5161d005eed6ff7a9fe6abea99690f4bcb7;hpb=30fd56b12ec22b3e19298c1f7e7c5f54551c015b diff --git a/lustre/include/lustre/lustre_idl.h b/lustre/include/lustre/lustre_idl.h index d0580ce..99bbc2f 100644 --- a/lustre/include/lustre/lustre_idl.h +++ b/lustre/include/lustre/lustre_idl.h @@ -1578,6 +1578,16 @@ extern void lustre_swab_generic_32s (__u32 *val); extern void lustre_swab_ll_fid (struct ll_fid *fid); +/* NOTE: until Lustre 1.8.7/2.1.1 the fid_ver() was packed into name[2], + * but was moved into name[1] along with the OID to avoid consuming the + * name[2,3] fields that need to be used for the quota id (also a FID). */ +enum { + LUSTRE_RES_ID_SEQ_OFF = 0, + LUSTRE_RES_ID_VER_OID_OFF = 1, + LUSTRE_RES_ID_WAS_VER_OFF = 2, /* see note above */ + LUSTRE_RES_ID_HSH_OFF = 3 +}; + #define MDS_STATUS_CONN 1 #define MDS_STATUS_LOV 2