Whamcloud - gitweb
LUDOC-287 protocol: Update Connection Discussion
[doc/protocol.git] / file_id.txt
1 Lustre File Identifier
2 ----------------------
3 [[fids]]
4
5 ----
6 struct lu_fid {
7         __u64 f_seq;
8         __u32 f_oid;
9         __u32 f_ver;
10 };
11 ----
12
13 File IDs ('fids') are 128-bit numbers that uniquely identify files and
14 directories on the MDTs and OSTs of a Lustre file system. The fid for
15 a Lustre file or directory is the fid from the corresponding MDT entry
16 for the file. Each of the data objects for that file will also have a
17 fid for each corresponding piece of the file on each of the
18 OSTs. Encoded in the fid is the target on which that file metadata or
19 file fragment resides. The map from fid to target is in the File
20 Location DataBase (FLDB).
21