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 4DB9AC32792 for ; Fri, 19 Aug 2022 23:53:20 +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 1oPBni-0003ee-Nl; Fri, 19 Aug 2022 23:53:18 +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 1oPBni-0003eY-9M for linux-f2fs-devel@lists.sourceforge.net; Fri, 19 Aug 2022 23:53:18 +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:To:From:Date:Sender:Reply-To:Cc: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=6SWqm3PzzU1+KqhoYtitVJkaxcd1j+BmB2Vu4ZW3pPo=; b=PvoBJUy+rRkQVKDvgeINXGjiNQ 337FhYIrA7AWA4AfQq9rJGfEai+Sohcs6dtfdAXVdzP5GWH+RpSHBmKspPHqGWIbV8OV+Ng65SFmd 1adI4BfPK3V2CwVaOEqSUwmKHvqV6bCYgyoLY5qiG13ili3DT7fVbwTkvpv87PhLofXs=; 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:To: From:Date:Sender:Reply-To:Cc: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=6SWqm3PzzU1+KqhoYtitVJkaxcd1j+BmB2Vu4ZW3pPo=; b=SAYhOtLpR1CGVGV35awBUlbv5m sNrGTjFR87laaDRNsiHiDjX8OpOGhBd29+t15J7ZpdvQa0TnY2ZOUjENIrovhqPC9nXQq41VRRxLh UBznwJA2wznZtfrFkoHiPtgHdoUi1Yooa1G3L/SAarMLzlXkVEDO4jcvWdWRzZFp2Uec=; Received: from ams.source.kernel.org ([145.40.68.75]) by sfi-mx-1.v28.lw.sourceforge.com with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.95) id 1oPBnh-009xXo-K8 for linux-f2fs-devel@lists.sourceforge.net; Fri, 19 Aug 2022 23:53:18 +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 ams.source.kernel.org (Postfix) with ESMTPS id 60F4EB829B4 for ; Fri, 19 Aug 2022 23:53:11 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id EB216C433D7; Fri, 19 Aug 2022 23:53:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1660953191; bh=pyyvju2kzZjvlECXi51yn2sTNYvHyXWrgTW5UX6N7E0=; h=Date:From:To:Subject:References:In-Reply-To:From; b=PhWo60zanBY7v7wkKDTYq61Cs0yUI0haNL/WxtIKlO/7l5BROCMu2UiKsVKN4H1wC /OStgAe4OCFNzbIU68wWJIi9SHDxyVD5g9nqodnTNXfcBsWhvkVkJKPh0N5Icvu23z V9d5g4JosCcOQHEpK1V0s85vPGW8nx+p0Cu/kffGFHEL+gFiumyPASiLmqAZNQljmC ZEVHwBFCrG1IO5DmMPuFS0+5/1mDq6Kz2VQ2InG2CouZiIQXfoa5hEC1TxD6G8m+Xq iM9YdYtmtjie1lTD8t+ePkOOq1pZBGeYVPyqXL2KmVRfqEv6+thP+jRS1Cz6XhZaaL 1Y4oHdtKxmr+Q== Date: Fri, 19 Aug 2022 16:53:09 -0700 From: Jaegeuk Kim To: linux-kernel@vger.kernel.org, linux-f2fs-devel@lists.sourceforge.net Message-ID: References: <20220811225454.2125297-1-jaegeuk@kernel.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20220811225454.2125297-1-jaegeuk@kernel.org> X-Headers-End: 1oPBnh-009xXo-K8 Subject: Re: [f2fs-dev] [PATCH v2] f2fs: LFS mode does not support ATGC 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 ATGC is using SSR which violates LFS mode used by zoned device. Signed-off-by: Jaegeuk Kim --- Change log from v1: - check LFS mode fs/f2fs/super.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/fs/f2fs/super.c b/fs/f2fs/super.c index 2451623c05a7..fe462484f5fa 100644 --- a/fs/f2fs/super.c +++ b/fs/f2fs/super.c @@ -1342,6 +1342,11 @@ static int parse_options(struct super_block *sb, char *options, bool is_remount) return -EINVAL; } + if (test_opt(sbi, ATGC) && f2fs_lfs_mode(sbi)) { + f2fs_err(sbi, "LFS not compatible with ATGC"); + return -EINVAL; + } + if (f2fs_sb_has_readonly(sbi) && !f2fs_readonly(sbi->sb)) { f2fs_err(sbi, "Allow to mount readonly mode only"); return -EROFS; -- 2.37.1.595.g718a3a8f04-goog _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel