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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 8B0BDC433F5 for ; Tue, 12 Apr 2022 16:34:03 +0000 (UTC) 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.94.2) (envelope-from ) id 1neJSr-0000pm-8n; Tue, 12 Apr 2022 16:34:02 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-2.v29.lw.sourceforge.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1neJSq-0000pN-9W for linux-f2fs-devel@lists.sourceforge.net; Tue, 12 Apr 2022 16:34:01 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sourceforge.net; s=x; h=In-Reply-To:Content-Type:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To:Content-Transfer-Encoding: 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=fNZMK+bZ3yLyzFbF0oqBEmrIfdRxI6t4CzuLg8FIUcA=; b=G60pP32JHONVHSyF2H5VKP6nAk caNp6AehxOvXtlc+EnLghcV0xAvld25u20RyzQKMak62VPxoryeDoeJRh0NvmbXOrl43iMALK4GrB pu8+5LeYVARH3ywkGLNWb7QupSGOSZ8kA7gPc1jdbfin7HCzt49KeNEDjV8pceZJT+Vg=; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=sf.net; s=x ; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To :From:Date:Sender:Reply-To:Content-Transfer-Encoding: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=fNZMK+bZ3yLyzFbF0oqBEmrIfdRxI6t4CzuLg8FIUcA=; b=l4j76lMkb+BTQSv81pd/QH9WAu IIahf46JjUcoicmPlXSHdbbdXprG2j/3Z7MW5nY5oXXKE4PPN9QfQW7ziqL2HKOszoBamCg8GgGtu +3CX7xFJblPBLANzNDHBwdaNVTDQBWGKIw2Yj5FA8DsmMUkipMMxQFAoHWZeQ2EQNMVo=; Received: from dfw.source.kernel.org ([139.178.84.217]) by sfi-mx-2.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.94.2) id 1neJSm-0005q1-Ey for linux-f2fs-devel@lists.sourceforge.net; Tue, 12 Apr 2022 16:34:00 +0000 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 2520061803; Tue, 12 Apr 2022 16:33:42 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5815FC385A1; Tue, 12 Apr 2022 16:33:41 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1649781221; bh=T/VyxmsfxdCPBK6uIblKsYCQtaXZeyLo4jRWZbFxnB0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=nGtKdcqPN1neRlBYt+81onq7G1lSyybMwh4CDEUW8f4MtO0120635E9jvTSz76+FJ njiYxrW39ZWjdXVJ1tWAmxSHDJPNkryQlfP+INpPPNeoXm7FzFpGOlzdRcb973pdCh AKhjKMX2dhNEttw3jg43MBInnj+EpYwgOdSu5SfH8A8aI4VlEm/UFwgXx1s0D8/fYN scmveldFLPfdoAFiP6ramq/if0K+buplI3NQBvjvPpc1ZLM1rTQO1wjGr6TUZm2wL3 ys9RwK5vXCg1qU6cpS4sfE1sRm7CNnVvzOPz75X50nzQEUw/FylhsmhgNz5np6/gFU R4QXSGTbruJRg== Date: Tue, 12 Apr 2022 09:33:39 -0700 From: Jaegeuk Kim To: Pankaj Raghav Message-ID: References: <20220412112745.44108-1-p.raghav@samsung.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20220412112745.44108-1-p.raghav@samsung.com> X-Headers-End: 1neJSm-0005q1-Ey Subject: Re: [f2fs-dev] [PATCH 0/3] f2fs-tools: return error for zoned devices with non power-of-2 zone size 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: , Cc: javier.gonz@samsung.com, Damien.LeMoal@wdc.com, mcgrof@kernel.org, pankydev8@gmail.com, linux-f2fs-devel@lists.sourceforge.net Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net On 04/12, Pankaj Raghav wrote: > F2FS only works for zoned devices with power-of-2 zone sizes as the > f2fs section needs to be a power-of-2. The section size actually supports multiple 2MBs, not PO2. > > At the moment the linux kernel only accepts zoned devices which are > power-of-2 as block devices but there are zoned devices in the market > which have non power-of-2 zone sizes. > > As a proactive measure, this patchset adds a check to return error > from mkfs and fsck for zoned devices with non power-of-2 zone sizes. > > Luis Chamberlain (3): > libf2fs_zoned: factor out helper to get chunk sectors > libf2fs: add support to report zone size > libf2fs: don't allow mkfs / fsck on zoned NPO2 > > include/f2fs_fs.h | 1 + > lib/libf2fs.c | 17 +++++++++++++++-- > lib/libf2fs_zoned.c | 32 ++++++++++++++++++++++---------- > 3 files changed, 38 insertions(+), 12 deletions(-) > > -- > 2.25.1 > > > > _______________________________________________ > Linux-f2fs-devel mailing list > Linux-f2fs-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel