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