From: Marc Lehmann <schmorp@schmorp.de>
To: Matthias Prager <linux@matthiasprager.de>
Cc: Jaegeuk Kim <jaegeuk@kernel.org>,
David Gnedt <david.gnedt@davizone.at>,
linux-f2fs-devel@lists.sourceforge.net
Subject: Re: f2fs bug: Unable to mount big volumes in kernel 4.5
Date: Wed, 23 Mar 2016 22:00:10 +0100 [thread overview]
Message-ID: <20160323205204.GB4443@schmorp.de> (raw)
In-Reply-To: <56F2C755.5060402@matthiasprager.de>
On Wed, Mar 23, 2016 at 05:41:57PM +0100, Matthias Prager <linux@matthiasprager.de> wrote:
> detail. Writing on a read-only fs is a no go! There usually is a reason
> why someone mounts an filesystem read-only and f2fs should not simply
> ignore such a flag.
Hmm, no.
Even an unusual case is enough, such as mounting it read-only for data
recovery because the underlying device dies on writes (quite likely for
ssds, the primary target for f2fs).
However, other linux filesystems either replay their journal on readonly
mounts, or even *require* a replay (most have a flag to prevent that,
but that might not help data recovery). In fact, my example above can
relatively easily worked around using device mapper and a temporary
snapshot volume for writes.
So, the "ro" mount flag in linux does not mean "do not write to the
backing store", and did not have that meaning for a long time, so it's
fine for f2fs to write even for ro mounts.
That means the correct behaviour for f2fs is to write unless "norecovery"
has been specified, which already exists for this purpose on f2fs.
Different behaviour would put f2fs at odds with other existing
filesystems, which write on "ro" mounts to gain integrity.
Even better would be if there was a "force" or similar option which would
allow me to mount filesystems with possibly bad superblock data. This
could even be rolled into the existing "norecovery" switch, which, when
given, could try to mount even if the superblock has (some amount of) bad
data.
--
The choice of a Deliantra, the free code+content MORPG
-----==- _GNU_ http://www.deliantra.net
----==-- _ generation
---==---(_)__ __ ____ __ Marc Lehmann
--==---/ / _ \/ // /\ \/ / schmorp@schmorp.de
-=====/_/_//_/\_,_/ /_/\_\
------------------------------------------------------------------------------
Transform Data into Opportunity.
Accelerate data analysis in your applications with
Intel Data Analytics Acceleration Library.
Click to learn more.
http://pubads.g.doubleclick.net/gampad/clk?id=278785351&iu=/4140
next prev parent reply other threads:[~2016-03-23 21:00 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <56EEC766.2030503@davizone.at>
[not found] ` <20160320224654.GB4752@jaegeuk.hsd1.ca.comcast.net>
2016-03-21 3:18 ` f2fs bug: Unable to mount big volumes in kernel 4.5 Chao Yu
2016-03-21 9:58 ` Matthias Prager
2016-03-21 15:57 ` Jaegeuk Kim
2016-03-21 10:30 ` Marc Lehmann
2016-03-21 16:03 ` Jaegeuk Kim
2016-03-22 3:37 ` Chao Yu
2016-03-22 20:05 ` Jaegeuk Kim
2016-03-21 20:58 ` David Gnedt
2016-03-21 22:56 ` Matthias Prager
2016-03-22 8:16 ` Chao Yu
[not found] ` <20160322203613.GA14498@jaegeuk.gateway>
2016-03-22 20:50 ` Matthias Prager
2016-03-22 21:05 ` Jaegeuk Kim
[not found] ` <56F29214.9040001@davizone.at>
2016-03-23 16:41 ` Matthias Prager
2016-03-23 21:00 ` Marc Lehmann [this message]
2016-03-24 1:29 ` Jaegeuk Kim
2016-03-22 21:05 ` Jaegeuk Kim
2016-03-22 8:15 ` Chao Yu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160323205204.GB4443@schmorp.de \
--to=schmorp@schmorp.de \
--cc=david.gnedt@davizone.at \
--cc=jaegeuk@kernel.org \
--cc=linux-f2fs-devel@lists.sourceforge.net \
--cc=linux@matthiasprager.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.