diff options
author | Andreas Gruenbacher <agruen@linbit.com> | 2011-06-09 01:40:48 +0200 |
---|---|---|
committer | Philipp Reisner <philipp.reisner@linbit.com> | 2014-02-17 16:44:57 +0100 |
commit | 803ea1348e412a1e35cfbb891f4514b74e7af460 (patch) | |
tree | d0a5b65f6550475e060742656035a018c148982f /drivers/block/drbd/drbd_int.h | |
parent | drbd: Minor cleanup in conn_new_minor() (diff) | |
download | linux-803ea1348e412a1e35cfbb891f4514b74e7af460.tar.xz linux-803ea1348e412a1e35cfbb891f4514b74e7af460.zip |
drbd: Add struct drbd_resource->devices
This allows to access the volumes of a resource by number.
Signed-off-by: Andreas Gruenbacher <agruen@linbit.com>
Signed-off-by: Philipp Reisner <philipp.reisner@linbit.com>
Diffstat (limited to 'drivers/block/drbd/drbd_int.h')
-rw-r--r-- | drivers/block/drbd/drbd_int.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/block/drbd/drbd_int.h b/drivers/block/drbd/drbd_int.h index b66f908e724e..73a7a6e8f715 100644 --- a/drivers/block/drbd/drbd_int.h +++ b/drivers/block/drbd/drbd_int.h @@ -539,6 +539,7 @@ enum { struct drbd_resource { char *name; struct kref kref; + struct idr devices; /* volume number to device mapping */ struct list_head connections; struct list_head resources; }; @@ -1202,6 +1203,7 @@ extern rwlock_t global_state_lock; extern int conn_lowest_minor(struct drbd_connection *connection); enum drbd_ret_code drbd_create_minor(struct drbd_connection *connection, unsigned int minor, int vnr); extern void drbd_destroy_device(struct kref *kref); +extern void drbd_delete_minor(struct drbd_device *mdev); extern struct drbd_resource *drbd_create_resource(const char *name); extern void drbd_free_resource(struct drbd_resource *resource); |