summaryrefslogtreecommitdiffstats
path: root/xlators/mgmt/glusterd/src/glusterd-locks.h
diff options
context:
space:
mode:
authorAvra Sengupta <asengupt@redhat.com>2014-03-04 02:08:51 +0000
committerRajesh Joseph <rjoseph@redhat.com>2014-03-07 04:32:12 -0800
commit96968a916336f70bfc77a353c6b31d4dedd91167 (patch)
treea995cb1ab55bf937262c04b05fb1d9b2d26c571e /xlators/mgmt/glusterd/src/glusterd-locks.h
parentb121434902d5839938045294cfdfe2a86e01a951 (diff)
glusterd/mgmt_v3 locks: Using snaps as an entity for mgmt_v3 locks.
Created framework to process single volume lock, single snap lock, multiple volume locks, multiple snap locks, and multiple snap and volume locks requests. Change-Id: I3f87bdec0bf142d6a1fd3f9d9f5012cc44eaf4bd Signed-off-by: Avra Sengupta <asengupt@redhat.com> Reviewed-on: http://review.gluster.org/7189 Reviewed-by: Rajesh Joseph <rjoseph@redhat.com> Tested-by: Rajesh Joseph <rjoseph@redhat.com>
Diffstat (limited to 'xlators/mgmt/glusterd/src/glusterd-locks.h')
-rw-r--r--xlators/mgmt/glusterd/src/glusterd-locks.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-locks.h b/xlators/mgmt/glusterd/src/glusterd-locks.h
index 9ca332f..83eb8c9 100644
--- a/xlators/mgmt/glusterd/src/glusterd-locks.h
+++ b/xlators/mgmt/glusterd/src/glusterd-locks.h
@@ -19,6 +19,14 @@ typedef struct mgmt_v3_lock_object_ {
uuid_t lock_owner;
} mgmt_v3_lock_obj;
+typedef struct mgmt_v3_lock_valid_entities {
+ char *type; /* Entity type like vol, snap */
+ gf_boolean_t default_value; /* The default value that *
+ * determines if the locks *
+ * should be held for that *
+ * entity */
+} valid_entities;
+
int32_t
glusterd_mgmt_v3_lock_init ();