diff options
author | Avra Sengupta <asengupt@redhat.com> | 2014-03-01 09:04:16 +0530 |
---|---|---|
committer | Rajesh Joseph <rjoseph@redhat.com> | 2014-03-07 04:29:33 -0800 |
commit | 44428343529bec83fab0e3519396471fc8f651b4 (patch) | |
tree | 3f1e2495cd03b122a558e16e3512ec319992d4ac /xlators/mgmt/glusterd/src/glusterd-locks.h | |
parent | 2e58513506919899115935c2ca6b2359fdeff7b8 (diff) |
glusterd/mgmt_v3 locks: Generalization of the volume wide locks.
Renaming volume locks as mgmt_v3 locks
Change-Id: I2a324e2b8e1772d7b165fe96ce8ba5b902c2ed9a
Signed-off-by: Avra Sengupta <asengupt@redhat.com>
Reviewed-on: http://review.gluster.org/7187
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.h | 19 |
1 files changed, 9 insertions, 10 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-locks.h b/xlators/mgmt/glusterd/src/glusterd-locks.h index 956ae7565..71339ed7f 100644 --- a/xlators/mgmt/glusterd/src/glusterd-locks.h +++ b/xlators/mgmt/glusterd/src/glusterd-locks.h @@ -15,30 +15,29 @@ #include "config.h" #endif -struct volume_lock_object_ { +typedef struct mgmt_v3_lock_object_ { uuid_t lock_owner; -}; -typedef struct volume_lock_object_ vol_lock_obj; +} mgmt_v3_lock_obj; int32_t -glusterd_vol_lock_init (); +glusterd_mgmt_v3_lock_init (); void -glusterd_vol_lock_fini (); +glusterd_mgmt_v3_lock_fini (); int32_t -glusterd_get_vol_lock_owner (char *volname, uuid_t *uuid); +glusterd_get_mgmt_v3_lock_owner (char *volname, uuid_t *uuid); int32_t -glusterd_volume_lock (char *volname, uuid_t uuid); +glusterd_mgmt_v3_lock (char *key, uuid_t uuid); int32_t -glusterd_volume_unlock (char *volname, uuid_t uuid); +glusterd_mgmt_v3_unlock (char *key, uuid_t uuid); int32_t -glusterd_multiple_volumes_lock (dict_t *dict, uuid_t uuid); +glusterd_multiple_mgmt_v3_lock (dict_t *dict, uuid_t uuid); int32_t -glusterd_multiple_volumes_unlock (dict_t *dict, uuid_t uuid); +glusterd_multiple_mgmt_v3_unlock (dict_t *dict, uuid_t uuid); #endif |