From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id A944DFA372C for ; Fri, 8 Nov 2019 01:57:18 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7AC0621D79 for ; Fri, 8 Nov 2019 01:57:18 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=wdc.com header.i=@wdc.com header.b="R66SntI1" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728485AbfKHB5R (ORCPT ); Thu, 7 Nov 2019 20:57:17 -0500 Received: from esa4.hgst.iphmx.com ([216.71.154.42]:12762 "EHLO esa4.hgst.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725928AbfKHB5R (ORCPT ); Thu, 7 Nov 2019 20:57:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1573178236; x=1604714236; h=from:to:subject:date:message-id:in-reply-to:references: mime-version:content-transfer-encoding; bh=eU3UPObloIUO/IHs6JVYQB0lk+QRMMWcTIgAimNInc8=; b=R66SntI1lWGpXRSjWs0slYKdBNjZICuE4oM9H7lA4m38YN5+wqU81HAa NenPK+/P/K4Ev4krNVDFOvx1HyS/fDmpCZ0e0rUTtgo/eB9+cW+yfuLT1 jwVURFU3ac/GTX7p2tDeKOGoXTNjgDnHEXb1b3F0SYwvMa/aa7Ppgj1Tn d0gOS69+XY+ODe5wcOfKTJN1mj8vnps2NXpjwX+WzaIsoG0uA3qS+21j3 d+tZ1m5qZESANfgy2Uulf7av3iZOBQPIc0bjHptUjiH7HQQ81nj/R881E KqUD+RAH+ieIVHxdAcdEZ0aBmsfwSio+LMFbtm6CV5uSMOjXPnqIYh9VJ A==; IronPort-SDR: WXMVCfbwbiZaRrWzIYACr2b/AZShZ04UdejeT6tvCZAdIW+7r8NUG203JKySjss0BgEJLj+2dr oPEmlwQsJWcMJeD7PuW20YBVuwKHPV/WF5Qf9H2XdM+z/yizRsPSn3+PsOy8gc8gKZCFvF8MgB DcWdjZGOENvGPgXxUw1L++HtHwAZyZzsbpsi8+yGPkFbtvFnaFBOj79dycj/NwcrGdsOgdSmFQ ugaA2iiwtQ+MMjvkh9bM7gdiazU7s7dvoaq6Tcirpf8PjxRr/LV6RpeyqlYeeVefUeezxzM1e+ 6Pg= X-IronPort-AV: E=Sophos;i="5.68,279,1569254400"; d="scan'208";a="122437218" Received: from uls-op-cesaip02.wdc.com (HELO uls-op-cesaep02.wdc.com) ([199.255.45.15]) by ob1.hgst.iphmx.com with ESMTP; 08 Nov 2019 09:57:16 +0800 IronPort-SDR: 2mDMB4j7+BJUnbnLftJqDcuWl/eUAB0WJowGr9ucxmbnhlfJnnG7FOqcKbj27fXhd9gpB27tgY KlNBK0fVWmviq7MVfxHCfsV6/rAck9+K0zvRa6GVn6PAJpwoP+ln9IZ+mXnbLiro3Ky4Kwhowz 8SzseiZe01H22lxsv+O84lO8VmaeaTk8M0olKb46Nxx19CG6MT8wzsVGCIaBK145UmenHolb3N n50RgH+7V7CX6Q4GKp6GIkKNaE09eNitYd5xFAdV0Znjbcs5v0EnrJX27y5KvqU3gVyOrazRKb c3crJGXo0nH/JoNgwKsoZfr7 Received: from uls-op-cesaip01.wdc.com ([10.248.3.36]) by uls-op-cesaep02.wdc.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Nov 2019 17:52:26 -0800 IronPort-SDR: eEzgyNms9DdIGk7sRIpN96F8FHGQ06z8avuZlFaN3KKigJBu+LO6ibEz+bD6UKDLObxbCGWKrq qXxDKKIVequs0bz2Mmbc2gCKQ8RIIFt3dNjcaHsmUhYC81ER/dlQzPyeEwS6AAJbdoFl3NuE3+ GP1SLuVOOCyvTrPg6u8HiBFq4tLtmeEaOZdfiEtANGNEn2h8kSQL4eVWOKDVK9X3VfpodIFDIH 2j9psiwRP02r26em63ZNUVJUGD9fDwUWMsLeCvbu+LVXK/Wg8I1PhoyH5skaS419+eKEEEO0ZC hJU= WDCIronportException: Internal Received: from washi.fujisawa.hgst.com ([10.149.53.254]) by uls-op-cesaip01.wdc.com with ESMTP; 07 Nov 2019 17:57:15 -0800 From: Damien Le Moal To: linux-block@vger.kernel.org, Jens Axboe , linux-scsi@vger.kernel.org, "Martin K . Petersen" , dm-devel@redhat.com, Mike Snitzer , linux-f2fs-devel@lists.sourceforge.net, Jaegeuk Kim , Chao Yu Subject: [PATCH 7/9] null_blk: Add zone_nr_conv to features Date: Fri, 8 Nov 2019 10:57:00 +0900 Message-Id: <20191108015702.233102-8-damien.lemoal@wdc.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191108015702.233102-1-damien.lemoal@wdc.com> References: <20191108015702.233102-1-damien.lemoal@wdc.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-block-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-block@vger.kernel.org For a null_blk device with zoned mode enabled, the number of conventional zones can be configured through configfs with the zone_nr_conv parameter. Add this missing parameter in the features string. Signed-off-by: Damien Le Moal --- drivers/block/null_blk_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/block/null_blk_main.c b/drivers/block/null_blk_main.c index 2687eb36441c..27fb34d7da31 100644 --- a/drivers/block/null_blk_main.c +++ b/drivers/block/null_blk_main.c @@ -467,7 +467,7 @@ nullb_group_drop_item(struct config_group *group, struct config_item *item) static ssize_t memb_group_features_show(struct config_item *item, char *page) { - return snprintf(page, PAGE_SIZE, "memory_backed,discard,bandwidth,cache,badblocks,zoned,zone_size\n"); + return snprintf(page, PAGE_SIZE, "memory_backed,discard,bandwidth,cache,badblocks,zoned,zone_size,zone_nr_conv\n"); } CONFIGFS_ATTR_RO(memb_group_, features); -- 2.23.0 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.6 required=3.0 tests=DKIM_INVALID,DKIM_SIGNED, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SIGNED_OFF_BY, SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 37DC1C5DF60 for ; Fri, 8 Nov 2019 01:57:29 +0000 (UTC) Received: from lists.sourceforge.net (lists.sourceforge.net [216.105.38.7]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 0979021882; Fri, 8 Nov 2019 01:57:28 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=sourceforge.net header.i=@sourceforge.net header.b="D2ynW6Zi"; dkim=fail reason="signature verification failed" (1024-bit key) header.d=sf.net header.i=@sf.net header.b="C/t/UfI5"; dkim=fail reason="signature verification failed" (2048-bit key) header.d=wdc.com header.i=@wdc.com header.b="DcCeTXRi" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0979021882 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=wdc.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=linux-f2fs-devel-bounces@lists.sourceforge.net Received: from [127.0.0.1] (helo=sfs-ml-2.v29.lw.sourceforge.com) by sfs-ml-2.v29.lw.sourceforge.com with esmtp (Exim 4.90_1) (envelope-from ) id 1iStWh-0006Ae-Ru; Fri, 08 Nov 2019 01:57:28 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-2.v29.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1iStWg-0006AB-LW for linux-f2fs-devel@lists.sourceforge.net; Fri, 08 Nov 2019 01:57:26 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=Content-Transfer-Encoding:MIME-Version:References: In-Reply-To:Message-Id:Date:Subject:To:From:Sender:Reply-To:Cc:Content-Type: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=DHA6avSzHHP4PvI86+yNyQrV5Tq5McHUDYPuiyO0LT8=; b=D2ynW6ZiHGd4MIL9O/m9PKmcgb q8UVB/yIqgBxadp4jmiIxXkjUo53L+y/cNxtKiONM7V29Kenywa8dei3cvSeQAoqS3Dgt03bVWyXN zbD0UeGqmjyxp2Az3neZRGJT1nf98kDOO1tsrSBx4woFl0lhdX+gUyYhbv4IsraDEKIM=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=Content-Transfer-Encoding:MIME-Version:References:In-Reply-To:Message-Id: Date:Subject:To:From:Sender:Reply-To:Cc:Content-Type:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=DHA6avSzHHP4PvI86+yNyQrV5Tq5McHUDYPuiyO0LT8=; b=C/t/UfI5d4OQ46jMQaQRXr+DsW OuRTE0OHQ8gpLky6Xn+B82/SHhDZsTLoeT8HRVbD0tNvI8DIcU2X48Dk8yHjNYNGQLHwAR8VfJvDw 4WCIr7Un4c+BuYYzNwSIkEXZSIVVBdHiTWiACY4Ueysey2Gi8CFK6Mib0dL6tvaqYnWo=; Received: from esa2.hgst.iphmx.com ([68.232.143.124]) by sfi-mx-4.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92.2) id 1iStWf-004Ptp-Fg for linux-f2fs-devel@lists.sourceforge.net; Fri, 08 Nov 2019 01:57:26 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=wdc.com; i=@wdc.com; q=dns/txt; s=dkim.wdc.com; t=1573178287; x=1604714287; h=from:to:subject:date:message-id:in-reply-to:references: mime-version:content-transfer-encoding; bh=eU3UPObloIUO/IHs6JVYQB0lk+QRMMWcTIgAimNInc8=; b=DcCeTXRikZtp/MJza5ldyoH9jkvBFo2KgvHnzcCIChOEHtMUrcxYDmcz 0JzXpU/68JMw/Bd2DMYPm9qw5+Q4Posyn9uQe9YAGdmAU+EAqZ8WV109B GwvlDlNDUCmbVnC5nAhYS5KFu/U/98ks8BnMTQatXxkYA7YQcVDEhfoUx RpLCQW8QpcwVUBWvYgP7sexr7w0DDooPYv3jT7bbtsM9S9Me/7ssxIqwF HCNbyMCWICBlt/vLK9fiaJkgpCtTIsYye3A0xZpB14S8xiwGhuD6SmV/H DaQBeiChbmWOQcebayRuw1IBX6cMOSqKruYKPkmyM2USz9YLofLMfGGXg A==; IronPort-SDR: OiOxF1R0Obwgr1QS51DlbFNklKR+0qC00KNSQdPFcVjI29anmwooQ3Uv4989H455bs+d3AU36+ YOwv8YYcs2EQx5633+Tt4aNbKzwWOFZo+zedBHp/hXCwht+IkMzhhI0wriZTqBesFGkglyFXhb HdWDsEjN9DMNuRVslDfCbCYrnF0uBM8rDfsy4ynTOUPiwY1CWYmTNuVrjLVlnK2dEazHAsB933 u7c9Yrg6FB66ChMJrQPyC3AM6ckzul62AaFSlW9afjW+HhiDrrpDM7o5gdl6tlpK7CyR7kbStY V5M= X-IronPort-AV: E=Sophos;i="5.68,279,1569254400"; d="scan'208";a="223636915" Received: from h199-255-45-15.hgst.com (HELO uls-op-cesaep02.wdc.com) ([199.255.45.15]) by ob1.hgst.iphmx.com with ESMTP; 08 Nov 2019 09:57:54 +0800 IronPort-SDR: YhxfispFe7IhvLK5hMH7FKDKTlbF74q8KzmwjzhRv3IEMXJuhUWNPGGpvAyeavJChR0ePgbsUG UXdMecu483n1wmNlat3W4CIxhBefbKoP204wYugj4xWxA/UeLLT4mh/SggmjT1sN11jAgaaWA8 GZTh+e7O8nVujPvFeVTv+cmEef03niKEtH6sJF/Il0/EJJUtTTUE0LPCS97RKvbwqiBdfoNB4h 9iOazPOgaaykETneDYqwiwCS0Ea/iGuFbTVAlAwh1Y0seVR0F36s4Bw6l60/saCxwY+EaP3F6i Rd2ZwtZf1L8nh9IwlL2NxM/g Received: from uls-op-cesaip01.wdc.com ([10.248.3.36]) by uls-op-cesaep02.wdc.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Nov 2019 17:52:26 -0800 IronPort-SDR: eEzgyNms9DdIGk7sRIpN96F8FHGQ06z8avuZlFaN3KKigJBu+LO6ibEz+bD6UKDLObxbCGWKrq qXxDKKIVequs0bz2Mmbc2gCKQ8RIIFt3dNjcaHsmUhYC81ER/dlQzPyeEwS6AAJbdoFl3NuE3+ GP1SLuVOOCyvTrPg6u8HiBFq4tLtmeEaOZdfiEtANGNEn2h8kSQL4eVWOKDVK9X3VfpodIFDIH 2j9psiwRP02r26em63ZNUVJUGD9fDwUWMsLeCvbu+LVXK/Wg8I1PhoyH5skaS419+eKEEEO0ZC hJU= WDCIronportException: Internal Received: from washi.fujisawa.hgst.com ([10.149.53.254]) by uls-op-cesaip01.wdc.com with ESMTP; 07 Nov 2019 17:57:15 -0800 From: Damien Le Moal To: linux-block@vger.kernel.org, Jens Axboe , linux-scsi@vger.kernel.org, "Martin K . Petersen" , dm-devel@redhat.com, Mike Snitzer , linux-f2fs-devel@lists.sourceforge.net, Jaegeuk Kim , Chao Yu Date: Fri, 8 Nov 2019 10:57:00 +0900 Message-Id: <20191108015702.233102-8-damien.lemoal@wdc.com> X-Mailer: git-send-email 2.23.0 In-Reply-To: <20191108015702.233102-1-damien.lemoal@wdc.com> References: <20191108015702.233102-1-damien.lemoal@wdc.com> MIME-Version: 1.0 X-Headers-End: 1iStWf-004Ptp-Fg Subject: [f2fs-dev] [PATCH 7/9] null_blk: Add zone_nr_conv to features X-BeenThere: linux-f2fs-devel@lists.sourceforge.net X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net For a null_blk device with zoned mode enabled, the number of conventional zones can be configured through configfs with the zone_nr_conv parameter. Add this missing parameter in the features string. Signed-off-by: Damien Le Moal --- drivers/block/null_blk_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/block/null_blk_main.c b/drivers/block/null_blk_main.c index 2687eb36441c..27fb34d7da31 100644 --- a/drivers/block/null_blk_main.c +++ b/drivers/block/null_blk_main.c @@ -467,7 +467,7 @@ nullb_group_drop_item(struct config_group *group, struct config_item *item) static ssize_t memb_group_features_show(struct config_item *item, char *page) { - return snprintf(page, PAGE_SIZE, "memory_backed,discard,bandwidth,cache,badblocks,zoned,zone_size\n"); + return snprintf(page, PAGE_SIZE, "memory_backed,discard,bandwidth,cache,badblocks,zoned,zone_size,zone_nr_conv\n"); } CONFIGFS_ATTR_RO(memb_group_, features); -- 2.23.0 _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel