diff options
author | Josef Bacik <jbacik@fb.com> | 2017-08-14 20:56:16 +0200 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2017-08-17 19:02:59 +0200 |
commit | 7a8362a0b5919f91a2255612a29e1cde4cac5f48 (patch) | |
tree | 201d67059c9dab72f6d2c634cd583b1a4854371a /drivers/block | |
parent | nbd: allow device creation at a specific index (diff) | |
download | linux-7a8362a0b5919f91a2255612a29e1cde4cac5f48.tar.xz linux-7a8362a0b5919f91a2255612a29e1cde4cac5f48.zip |
nbd: change the default nbd partitions
There's no reason to have partitions disabled for nbd by default, it costs us
nothing to have it enabled and is just confusing/obnoxious to users who try to
use partitions with nbd.
Signed-off-by: Josef Bacik <jbacik@fb.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/nbd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/block/nbd.c b/drivers/block/nbd.c index d816ae7db205..6752b9178a39 100644 --- a/drivers/block/nbd.c +++ b/drivers/block/nbd.c @@ -128,7 +128,7 @@ static struct dentry *nbd_dbg_dir; #define NBD_MAGIC 0x68797548 static unsigned int nbds_max = 16; -static int max_part; +static int max_part = 16; static struct workqueue_struct *recv_workqueue; static int part_shift; @@ -2146,4 +2146,4 @@ MODULE_LICENSE("GPL"); module_param(nbds_max, int, 0444); MODULE_PARM_DESC(nbds_max, "number of network block devices to initialize (default: 16)"); module_param(max_part, int, 0444); -MODULE_PARM_DESC(max_part, "number of partitions per device (default: 0)"); +MODULE_PARM_DESC(max_part, "number of partitions per device (default: 16)"); |