Whamcloud - gitweb
LUDOC-296 protocol: remove internal details from descriptions
[doc/protocol.git] / layout_intent.txt
1 Layout Intent
2 ^^^^^^^^^^^^^
3 [[struct-layout-intent]]
4
5 An LDLM_ENQUEUE RPC with a layout intent uses the 'layout_intent'
6 structure to specify the desired use for the layout.
7
8 ----
9 struct layout_intent {
10         __u32 li_opc;
11         __u32 li_flags;
12         __u64 li_start;
13         __u64 li_end;
14 };
15 ----
16
17 The uses for the layout that the 'li_opc' field can specify are:
18
19 ----
20 enum {
21         LAYOUT_INTENT_ACCESS    = 0,
22         LAYOUT_INTENT_READ      = 1,
23         LAYOUT_INTENT_WRITE     = 2,
24         LAYOUT_INTENT_GLIMPSE   = 3,
25         LAYOUT_INTENT_TRUNC     = 4,
26         LAYOUT_INTENT_RELEASE   = 5,
27         LAYOUT_INTENT_RESTORE   = 6
28 };
29 ----
30
31 The other fields - 'li_flags', 'li_start', and 'li_end' - are reserved for
32 future use.