Whamcloud - gitweb
LUDOC 299 protocol: Spell-check document
[doc/protocol.git] / struct_ldlm_intent.txt
1 .LDLM Intent
2 [[struct-ldlm-intent]]
3 ****
4 A lock request can include an 'intent' operation. Which operation is
5 encoded in the 'ldlm_intent' 'opc'.
6
7 [source,c]
8 ----
9 struct ldlm_intent {
10         __u64 opc;
11 };
12 ----
13
14 The available operations are:
15
16 [source,c]
17 ----
18 #define IT_OPEN     (1 << 0)
19 #define IT_CREAT    (1 << 1)
20 #define IT_READDIR  (1 << 2)
21 #define IT_GETATTR  (1 << 3)
22 #define IT_LOOKUP   (1 << 4)
23 #define IT_UNLINK   (1 << 5)
24 #define IT_TRUNC    (1 << 6)
25 #define IT_GETXATTR (1 << 7)
26 #define IT_EXEC     (1 << 8)
27 #define IT_PIN      (1 << 9)
28 #define IT_LAYOUT   (1 << 10)
29 #define IT_QUOTA_DQACQ (1 << 11)
30 #define IT_QUOTA_CONN  (1 << 12)
31 #define IT_SETXATTR (1 << 13)
32 ----
33 ****