]> git.baikalelectronics.ru Git - kernel.git/commit
nbd: allow device creation at a specific index
authorJosef Bacik <jbacik@fb.com>
Mon, 14 Aug 2017 18:25:33 +0000 (18:25 +0000)
committerJens Axboe <axboe@kernel.dk>
Thu, 17 Aug 2017 17:02:57 +0000 (11:02 -0600)
commitdec3311f3e7ecb03c8ca20f0272aa6f872a8d37d
tree998d7a6b571ef5f6090a742ee478bcde8c7ca313
parent5f10a47653ca8bac61d4b4f4d37599f10370b455
nbd: allow device creation at a specific index

If users really want to use a particular index for their nbd device and it
doesn't already exist there's no reason we can't just create it for them.  Do
this instead of erroring out.

Signed-off-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/nbd.c