diff options
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 |