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 E00B8C433F5 for ; Mon, 10 Oct 2022 22:16: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.95) (envelope-from ) id 1oi146-0000uu-Gd; Mon, 10 Oct 2022 22:16: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.95) (envelope-from ) id 1oi144-0000ue-Pa for linux-f2fs-devel@lists.sourceforge.net; Mon, 10 Oct 2022 22:16:00 +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:Cc:To:From:Sender:Reply-To: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=gQV77Chf/GSWmXChjOyoIVnxLoGosSsgPxzG08E9QsA=; b=iIoTqp9PmHVC7C3qJyzkOAKaL/ 0Bb47c8niNxlM4Wz7gS19/Vo0tcF9MPOQ/vaegXdfKqD/bN8rOTcWXBT4fRhL61v+0StPWcAdd+tL u9Nq1p4kgld2wi8ruzGI8kRADKVgtlNhE56KYVL+SJ8aqwc0o/qUyWVWd98L0i5BgPwg=; 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:Cc:To:From:Sender:Reply-To: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=gQV77Chf/GSWmXChjOyoIVnxLoGosSsgPxzG08E9QsA=; b=XrIJG0yN3KYv4TpFhgMtX040q0 vb5/o3vRcHUHBV9vtRClLIN6kDCOJcZa67Zy+318530jlk5H7PZsTuBDNL44VnPRDSTCFJycB45td IOBWC/8Keuvv6Mx6aEB0UHh6DhDJHLGrKxE3f4mO9R9LXy9Rog9R2yL44f8wIKEtFG8o=; Received: from dfw.source.kernel.org ([139.178.84.217]) by sfi-mx-1.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.95) id 1oi141-001Qqn-8m for linux-f2fs-devel@lists.sourceforge.net; Mon, 10 Oct 2022 22:16: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 DD6B46103F for ; Mon, 10 Oct 2022 22:15:51 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id A087CC433D7; Mon, 10 Oct 2022 22:15:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1665440151; bh=3OUQNeAkTCtSqjS0L0nGoMjyvy6D/AtHaHO/WsORh3g=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=eVCdyiaSnNjiAslzah+9n3Zasb4mZ4aNrOmJ+Tq7HIFSeTICpD0Z4SgZ5J0OI7q9n XffuKVvAYeDjLv8Or8a7YGyThZsNL9FDDzvOHZhu11ZTsMrNkqdqzmTqYFnd2wZD7u nvm3wRpeyMQIZhoKunXM44JkYFCyEID/wHqSM3HHUR0jY6+1taJIvGu8CrqawCLOpk h0394DV7sbJZOvW1NbCMr657TXGSMuycYF00PYCS15zhQRgpG3GmhgFbGO7KRRpxbR ik4LaHFdkai+5NOuTvReKpvutKqdo27XXODj7FLDrfFG5dH/xASLYnYOTP6mpQ12jn a3niVJSibh3LQ== From: Jaegeuk Kim To: linux-f2fs-devel@lists.sourceforge.net Date: Mon, 10 Oct 2022 15:15:48 -0700 Message-Id: <20221010221548.2728860-3-jaegeuk@kernel.org> X-Mailer: git-send-email 2.38.0.rc1.362.ged0d419d3c-goog In-Reply-To: <20221010221548.2728860-1-jaegeuk@kernel.org> References: <20221010221548.2728860-1-jaegeuk@kernel.org> MIME-Version: 1.0 X-Headers-End: 1oi141-001Qqn-8m Subject: [f2fs-dev] [PATCH 3/3] f2fs-tools: set host-aware zoned device similar to host-managed one 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: Jaegeuk Kim Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-f2fs-devel-bounces@lists.sourceforge.net It'd be good to generate zone-aware sequential writes to both of HA and HM zoned devices. Signed-off-by: Jaegeuk Kim --- fsck/mount.c | 2 +- mkfs/f2fs_format.c | 2 +- mkfs/f2fs_format_main.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/fsck/mount.c b/fsck/mount.c index cd8a07538150..25b7f3b29899 100644 --- a/fsck/mount.c +++ b/fsck/mount.c @@ -987,7 +987,7 @@ int sanity_check_raw_super(struct f2fs_super_block *sb, enum SB_ADDR sb_addr) } /* Check zoned block device feature */ - if (c.devices[0].zoned_model == F2FS_ZONED_HM && + if (c.devices[0].zoned_model != F2FS_ZONED_NONE && !(sb->feature & cpu_to_le32(F2FS_FEATURE_BLKZONED))) { MSG(0, "\tMissing zoned block device feature\n"); return -1; diff --git a/mkfs/f2fs_format.c b/mkfs/f2fs_format.c index 5daf1a17c77d..c314d1c330a8 100644 --- a/mkfs/f2fs_format.c +++ b/mkfs/f2fs_format.c @@ -454,7 +454,7 @@ static int f2fs_prepare_super_block(void) * not overlap to metadata area. */ for (i = 1; i < c.ndevs; i++) { - if (c.devices[i].zoned_model == F2FS_ZONED_HM && + if (c.devices[i].zoned_model != F2FS_ZONED_NONE && c.devices[i].start_blkaddr < get_sb(main_blkaddr)) { MSG(0, "\tError: Conventional device %s is too small," " (%"PRIu64" MiB needed).\n", c.devices[0].path, diff --git a/mkfs/f2fs_format_main.c b/mkfs/f2fs_format_main.c index d2c2605ae6a5..f50971c4591c 100644 --- a/mkfs/f2fs_format_main.c +++ b/mkfs/f2fs_format_main.c @@ -480,7 +480,7 @@ int main(int argc, char *argv[]) * Some options are mandatory for host-managed * zoned block devices. */ - if (c.zoned_model == F2FS_ZONED_HM && !c.zoned_mode) { + if (c.zoned_model != F2FS_ZONED_NONE && !c.zoned_mode) { MSG(0, "\tError: zoned block device feature is required\n"); goto err_format; } -- 2.38.0.rc1.362.ged0d419d3c-goog _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel