Comment 5 for bug 342563

Revision history for this message
Scott James Remnant (Canonical) (canonical-scott) wrote : [PATCH] UBUNTU: SAUCE: nbd: Change default partitions per device to 15

This was previously changed by using an "options" line in a modprobe.d
file, however that practice is now deprecated. This is because module
names, option names, their values and even their current defaults can
all change inside the kernel and module-init-tools has never been kept
in sync.

In addition, changing the kernel means that the option change will apply
if the module is built in by users or the OEM team.

Bug: #342563

Signed-off-by: Scott James Remnant <email address hidden>
---
 drivers/block/nbd.c | 2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/block/nbd.c b/drivers/block/nbd.c
index 92d6c9f..e3db5c3 100644
--- a/drivers/block/nbd.c
+++ b/drivers/block/nbd.c
@@ -56,7 +56,7 @@ static unsigned int debugflags;

 static unsigned int nbds_max = 16;
 static struct nbd_device *nbd_dev;
-static int max_part;
+static int max_part = 15;

 /*
  * Use just one lock (or at most 1 per NIC). Two arguments for this:
--
1.6.0.5