From patchwork Mon Aug 14 18:56:16 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Josef Bacik X-Patchwork-Id: 9899935 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id D56E5602CA for ; Mon, 14 Aug 2017 18:56:18 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C9778286C8 for ; Mon, 14 Aug 2017 18:56:18 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BE2C9286D0; Mon, 14 Aug 2017 18:56:18 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.4 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 74AF0286C8 for ; Mon, 14 Aug 2017 18:56:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752203AbdHNS4S (ORCPT ); Mon, 14 Aug 2017 14:56:18 -0400 Received: from mail-yw0-f195.google.com ([209.85.161.195]:33777 "EHLO mail-yw0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752199AbdHNS4R (ORCPT ); Mon, 14 Aug 2017 14:56:17 -0400 Received: by mail-yw0-f195.google.com with SMTP id u207so6751469ywc.0 for ; Mon, 14 Aug 2017 11:56:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=toxicpanda-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=QIi05mKA2JV3XumS/c4CpA015FWB1iDGRrM+oLBwFkg=; b=gZweZuMDKhLy5iOKlBmbFDFFbZLYw3fnQ0ZlQrgcjX+f55ts7InI9Dimf4odgemNWQ fICWI33vJfWnbXbpamm232Py45fc7MGlIogCp1oYygKHfg/pYpjdpi7qKR02fjqq5IsI yEnIBCAaBojlja/YwC9els6xpGfO2dhH/OrR8nBeCjXUorEb7/p5xVUYEDpuivJt3zXp NJ3RzOicj8+FyydDyUJMxlIO0NIwLH1LIWXD7ZzRjiNnw2F9z3F/3GQoevFoh1db51F8 t1oS9TXFjHS0AV6qb6cZOmv/b/MST6bt1zBBg9Gim4XCl0MO+NlyG3nMMW8of7LyBeT+ azfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=QIi05mKA2JV3XumS/c4CpA015FWB1iDGRrM+oLBwFkg=; b=PfxtRXXqvo+ruR3ClnL8h/Rw05LfbVznGSwhPF+hVLg01oxHL5TzSFJtZYD1Xcf3Bb xJnCYV+UKxa43TY9osIvcgvmTJIeFx6kPW7L8vlgzzNa7h5vk1XzTvQPdqShFMkpp3zF Vl6pBJKiu4Jrb4NeMssjctQESKE/gFoRm9e1z0e55ztwNwpbtIoEFL+rUjr440NWWO09 Rt3EfXjzQlYbYAYixo9zhb3KXdn9z+/5YBTSF8eBtEErsjcPVgdZlgnbbV+hrDdYbLiz DqvBgT8iXTuROug4u2PH9p6JRVW6Q8KPAtlWLa/AFDwGSPilGGCUikM1BpTAb3QRRqZR ImMw== X-Gm-Message-State: AHYfb5hbcOr7PHQreqDXGkKPuS+qhPC4cQaLLy11D0TmjqvloI8RS6lG 37fQC77AdE/IsfYS X-Received: by 10.129.131.211 with SMTP id t202mr20892395ywf.402.1502736976948; Mon, 14 Aug 2017 11:56:16 -0700 (PDT) Received: from localhost (li70-116.members.linode.com. [74.207.228.116]) by smtp.gmail.com with ESMTPSA id l127sm2965416ywd.9.2017.08.14.11.56.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 14 Aug 2017 11:56:16 -0700 (PDT) From: Josef Bacik To: axboe@kernel.dk, linux-block@vger.kernel.org, kernel-team@fb.com Cc: Josef Bacik Subject: [PATCH] nbd: change the default nbd partitions Date: Mon, 14 Aug 2017 18:56:16 +0000 Message-Id: <1502736976-15966-1-git-send-email-josef@toxicpanda.com> X-Mailer: git-send-email 1.8.3.1 Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Josef Bacik 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 --- drivers/block/nbd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/block/nbd.c b/drivers/block/nbd.c index d816ae7..6752b91 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)");