Whamcloud - gitweb
LUDOC-270 doc: describe more connect flags
[doc/protocol.git] / lustre_file_ids.txt
1 Lustre File IDs
2 ^^^^^^^^^^^^^^^
3 [[file-id]]
4
5 Each resource stored on a target is assigned an identifier that is
6 unique to that resource.
7
8 ----
9 struct lu_fid {
10         __u64 f_seq;
11         __u32 f_oid;
12         __u32 f_ver;
13 };
14 ----
15
16 The 'f_seq' field identifies the target. That is, all the resources
17 with a common 'f_seq' will be on the same target. A target can have
18 more than one 'f_seq' value assigned to it.
19
20 The 'f_oid' gives the specific value for a given resource that is
21 unique to that resource on that target.
22
23 The 'f_ver' value identifies which version of a resource is being
24 identified, in the event that the resource is being updated, and
25 different hosts might be referring to different versions of the same
26 resource.