Whamcloud - gitweb
LUDOC-297 protocol: Update protocol document
[doc/protocol.git] / struct_ost_id.txt
1 .OST ID
2 [[struct-ost-id]]
3 ****
4 The 'ost_id' identifies a single object on a particular OST.
5
6 [source,c]
7 ----
8 struct ost_id {
9         union {
10                 struct ostid {
11                         __u64   oi_id;
12                         __u64   oi_seq;
13                 } oi;
14                 struct lu_fid oi_fid;
15         };
16 };
17 ----
18
19 The 'ost_id' structure contains an identifier for a single OST object.
20 The 'oi' structure holds the OST object identifier as used with Lustre
21 1.8 and earlier, where the 'oi_seq' field is typically zero, and the
22 'oi_id' field is an integer identifying an object on a particular OST
23 (which is identified separately).  Since Lustre 2.5 it is possible for
24 OST objects to also be identified with a unique FID (see
25 <<struct-lu-fid>>) that identifies both the OST on which it resides as
26 well as the object identifier itself.
27 ****