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=-3.8 required=3.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no 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 03077C433F5 for ; Fri, 10 Sep 2021 22:59:00 +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 B11086113E; Fri, 10 Sep 2021 22:58:59 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org B11086113E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=lists.sourceforge.net Received: from [127.0.0.1] (helo=sfs-ml-4.v29.lw.sourceforge.com) by sfs-ml-4.v29.lw.sourceforge.com with esmtp (Exim 4.90_1) (envelope-from ) id 1mOpU3-0005Ml-Cn; Fri, 10 Sep 2021 22:58:59 +0000 Received: from [172.30.20.202] (helo=mx.sourceforge.net) by sfs-ml-4.v29.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mOpU2-0005Mf-G2 for linux-f2fs-devel@lists.sourceforge.net; Fri, 10 Sep 2021 22:58:58 +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=xVsR/RRT7I3Tnxkv/nTlHz93RR/GMXX4+jeo5eedbJo=; b=CwbKeITBX9jcAkQQllx0ZGW3BQ EeZ6ERVLpMTAhnlhV+VeF9hW6mNP8nDTIW6QkMuHfIkrkx2hyzKtjqeCjmD248j86gaonIbmjyfRm H1ypgC26/Fm5yZHoXlyhdZGOGC3K88fgbbH/knTCzc5yKecAF6JOJ85OSqReLYe3yHbw=; 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=xVsR/RRT7I3Tnxkv/nTlHz93RR/GMXX4+jeo5eedbJo=; b=G8gfse8P7se41xbU4VcnELWAwM kKhS9V1ermrUGQ23lJIEsX4YGjLUCG4U4T251VMomkYyioTmAlhcvt7x+RiJI7rmgSaxtDk+MdW/6 3BO3ijTYqyfoPy/FoR8badHbJAh4qhhpHIUVEO/vXAbFGT7WNl3TtbNe4f/lpLsUsLZA=; Received: from mail.kernel.org ([198.145.29.99]) by sfi-mx-1.v28.lw.sourceforge.com with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.92.3) id 1mOpU1-006fKU-Ls for linux-f2fs-devel@lists.sourceforge.net; Fri, 10 Sep 2021 22:58:58 +0000 Received: by mail.kernel.org (Postfix) with ESMTPSA id 11F316113E; Fri, 10 Sep 2021 22:58:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1631314732; bh=S4z88pHwH9sVsO53796P1cgVESaByYjJicev6ptKa3A=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=CnR4wX6YS3smqW1Jen6axpgAZjO2snooTKGwJMibFGowaDdlhU4GxG/sLjVgdStNS njXxdaW5o+XsrEF3ye4o7jnafHlEEQ75um1TKWlEGWdhVYqch7VCjfCinzftjTH5Cg 32f3S/c8dqC+1YoVHza68lcopclcARBK43u6feTgyLDYvxeEA9e265iZHyfg0K2OKk X0/7krOdbiTzbWyZcpdpZ4jBkMp2JYGWcPRV75uiofDoZJaMVcjNoGCmRVY8tk/SkL RdkHgRYVgLanAePnwUVOjNpV+pgrW50FQNmkdFKNyZdjspR0AKigiyb3eH4thLEsm1 LczNyophRJZ4A== Date: Fri, 10 Sep 2021 15:58:50 -0700 From: Jaegeuk Kim To: "S." Message-ID: References: <75f47f9c-4587-9105-81bd-38708df8fab9@gmail.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <75f47f9c-4587-9105-81bd-38708df8fab9@gmail.com> X-Headers-End: 1mOpU1-006fKU-Ls Subject: Re: [f2fs-dev] mkfs.f2fs -f to reformat Btrfs partition doesn't change FS type 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: 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 09/07, S. wrote: > Hi there, I develop Linux spins based on openSUSE Tumbleweed. Currently the base system has Linux 5.14.0 and f2fs-tools 1.14.0. There is a bug that I can consistently reproduce with: > # mkfs.f2fs -f /dev/sda1 > When the prior filesystem of /dev/sda1 is Btrfs, the `mkfs.f2fs` command is successful, but the filesystem type remains "Btrfs". Then the filesystem can be manually mounted with `mount -t f2fs ####` but only manually, the wrong FS type confuses the Linux boot process and won't allow it to mount in the case of a root partition. This appears to only happen when the previous filesystem is Btrfs. I have tested this bug to *not* occur when the previous filesystem is EXT4 and XFS. It seems mkfs.f2fs didn't wipe the BTRFS magic since that is unused critical space in f2fs. Anyway, I think it's worth to fix it. https://lore.kernel.org/linux-f2fs-devel/20210910225618.501839-1-jaegeuk@kernel.org/T/#u > Thanks a lot! > > > _______________________________________________ > 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