X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Ffid%2Ffid_lib.c;h=f0fdfd4b1a1abbf6343e20f28a266dd869d7255b;hb=6dd4e216db811187ae024bd9e9ed2718a024eac4;hp=cf333906155550f84475be2d932db0a2aaaa36f7;hpb=fd908da92ccd9aab4ffc3d2463301831260c0474;p=fs%2Flustre-release.git diff --git a/lustre/fid/fid_lib.c b/lustre/fid/fid_lib.c index cf33390..f0fdfd4 100644 --- a/lustre/fid/fid_lib.c +++ b/lustre/fid/fid_lib.c @@ -43,14 +43,22 @@ #include #include -/* - * Sequence space, starts from 0x100000000ULL to have first 0x100000000ULL - * sequences used for special purposes. - * Those fids are reserved for special purposes (igifs, etc.). +/** + * A cluster-wide range from which fid-sequences are granted to servers and + * then clients. + * + * Fid namespace: + *
+ * Normal FID:        seq:64 [2^33,2^64-1]      oid:32          ver:32
+ * IGIF      :        0:32, ino:32              gen:32          0:32
+ * IDIF      :        0:31, 1:1, ost-index:16,  objd:48         0:32
+ * 
+ * + * The first 0x400 sequences of normal FID are reserved for special purpose. */ const struct lu_range LUSTRE_SEQ_SPACE_RANGE = { - (0x100000000ULL), - ((__u64)~0ULL) + FID_SEQ_START + 0x400ULL, + (__u64)~0ULL }; EXPORT_SYMBOL(LUSTRE_SEQ_SPACE_RANGE);