Whamcloud - gitweb
LUDOC-276 protocol: Document RPCs for setattr
[doc/protocol.git] / ldlm_intent.txt
diff --git a/ldlm_intent.txt b/ldlm_intent.txt
new file mode 100644 (file)
index 0000000..a191750
--- /dev/null
@@ -0,0 +1,32 @@
+LDLM Intent
+^^^^^^^^^^^
+[[struct-ldlm-intent]]
+
+A lock request can include an 'intent' operation. Which operation is
+encoded in the 'ldlm_intent' 'opc'.
+
+----
+struct ldlm_intent {
+        __u64 opc;
+};
+----
+
+The available operations are:
+
+----
+#define IT_OPEN     (1 << 0)
+#define IT_CREAT    (1 << 1)
+#define IT_READDIR  (1 << 2)
+#define IT_GETATTR  (1 << 3)
+#define IT_LOOKUP   (1 << 4)
+#define IT_UNLINK   (1 << 5)
+#define IT_TRUNC    (1 << 6)
+#define IT_GETXATTR (1 << 7)
+#define IT_EXEC     (1 << 8)
+#define IT_PIN      (1 << 9)
+#define IT_LAYOUT   (1 << 10)
+#define IT_QUOTA_DQACQ (1 << 11)
+#define IT_QUOTA_CONN  (1 << 12)
+#define IT_SETXATTR (1 << 13)
+----
+