aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/dlm_device.h
diff options
context:
space:
mode:
authorDavid Teigland <teigland@redhat.com>2007-03-30 15:06:16 -0500
committerSteven Whitehouse <swhiteho@redhat.com>2007-05-01 09:11:12 +0100
commit72c2be776bd6eec5186e316e6d9dd4aab78d314d (patch)
tree378338f229887375efbb3388068a148227b72b23 /include/linux/dlm_device.h
parent8499137d4ef1829281e04838113b6b09a0bf1269 (diff)
downloadkernel_samsung_smdk4412-72c2be776bd6eec5186e316e6d9dd4aab78d314d.zip
kernel_samsung_smdk4412-72c2be776bd6eec5186e316e6d9dd4aab78d314d.tar.gz
kernel_samsung_smdk4412-72c2be776bd6eec5186e316e6d9dd4aab78d314d.tar.bz2
[DLM] interface for purge (2/2)
Add code to accept purge commands from userland. Signed-off-by: David Teigland <teigland@redhat.com> Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'include/linux/dlm_device.h')
-rw-r--r--include/linux/dlm_device.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/linux/dlm_device.h b/include/linux/dlm_device.h
index 2a2dd18..c2735ca 100644
--- a/include/linux/dlm_device.h
+++ b/include/linux/dlm_device.h
@@ -19,7 +19,7 @@
/* Version of the device interface */
#define DLM_DEVICE_VERSION_MAJOR 5
-#define DLM_DEVICE_VERSION_MINOR 0
+#define DLM_DEVICE_VERSION_MINOR 1
#define DLM_DEVICE_VERSION_PATCH 0
/* struct passed to the lock write */
@@ -44,6 +44,11 @@ struct dlm_lspace_params {
char name[0];
};
+struct dlm_purge_params {
+ __u32 nodeid;
+ __u32 pid;
+};
+
struct dlm_write_request {
__u32 version[3];
__u8 cmd;
@@ -53,6 +58,7 @@ struct dlm_write_request {
union {
struct dlm_lock_params lock;
struct dlm_lspace_params lspace;
+ struct dlm_purge_params purge;
} i;
};
@@ -76,6 +82,7 @@ struct dlm_lock_result {
#define DLM_USER_QUERY 3
#define DLM_USER_CREATE_LOCKSPACE 4
#define DLM_USER_REMOVE_LOCKSPACE 5
+#define DLM_USER_PURGE 6
/* Arbitrary length restriction */
#define MAX_LS_NAME_LEN 64