From: "Bryan Henderson" <hbryan@us.ibm.com>
To: Goswin Brederlow <goswin.brederlow@student.uni-tuebingen.de>
Cc: Goswin Brederlow <goswin.brederlow@student-uni-tuebingen.de>,
linux-fsdevel@vger.kernel.org,
linux-fsdevel-owner@vger.kernel.org,
linux-kernel@vger.kernel.org,
Jean-Marc Saffroy <saffroy@ri.silicomp.fr>,
Linus Torvalds <torvalds@transmeta.com>,
Alexander Viro <viro@math.psu.edu>
Subject: Re: [RFD] readonly/read-write semantics
Date: Fri, 31 Aug 2001 17:38:19 -0700 [thread overview]
Message-ID: <OFD8AF2BD0.34BE14E6-ON87256ABA.000279DF@boulder.ibm.com> (raw)
>> 2) I'd like to see a readonly mount state defined as "the filesystem
will
>> not change. Period." Not for system calls in progress, not for cache
>> synchronization, not to set an "unmounted" flag, not for writes that are
>> queued in the device driver or device...
>Thats what readonly does now, isn't it?
No, it's much more sloppy than that today. The mount is slammed into the
readonly state and writes in progress continue to modify the filesystem
medium. The remount system call does a weak check to see that there is no
writing going on before proceeding to set the readonly flag on. A mkdir in
progress continues to complete. A properly timed open for write could even
slip in. The the opener can write away while the mount is in "readonly"
state. And finally, Al points out that a filesystem driver that gets
scared by some consistency error may stamp its foot and declare "readonly"
state right under the nose of of open-for-write file descriptors, which
allow continued writing.
>But you want that also to be
>when the filesystem is writeable but not being written to at the
>moment, i.e. if its in a consistent state or "clean".
Well, no I don't. That's another state. And the mount goes in and out of
that state all the time without any help from us, so the only issue would
be detecting the state to make it useful. I used to think Unix filesystems
always did that, but I don't seem to be able to get an ext2 filesystem
(mounted r/w) into no-fsck-required state without actually unmounting it.
next reply other threads:[~2001-09-01 0:40 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-09-01 0:38 Bryan Henderson [this message]
-- strict thread matches above, loose matches on Subject: below --
2001-09-05 2:34 Bryan Henderson
2001-09-04 19:50 Bryan Henderson
2001-09-05 2:15 ` Alexander Viro
2001-09-04 18:39 Bryan Henderson
2001-08-31 23:35 Bryan Henderson
2001-09-01 4:23 ` Alexander Viro
2001-09-01 14:42 ` Ingo Oeser
2001-09-01 16:44 ` Alexander Viro
2001-09-01 17:13 ` Nicholas Knight
2001-09-04 2:07 ` Jean-Marc Saffroy
2001-09-04 4:09 ` Alexander Viro
2001-09-04 9:26 ` Xavier Bestel
2001-09-04 10:15 ` Alexander Viro
2001-09-04 10:20 ` Xavier Bestel
2001-09-04 10:28 ` Alexander Viro
2001-09-04 10:59 ` Xavier Bestel
2001-09-04 11:29 ` Alexander Viro
2001-09-04 17:03 ` Pavel Machek
2001-09-04 16:58 ` Pavel Machek
2001-08-31 17:18 [Q] [VFS] NULL f_dentry for opened files ; possible race condition Jean-Marc Saffroy
2001-08-31 20:56 ` [RFD] readonly/read-write semantics Alexander Viro
2001-09-01 13:08 ` Juan Quintela
2001-09-04 1:16 ` Jean-Marc Saffroy
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=OFD8AF2BD0.34BE14E6-ON87256ABA.000279DF@boulder.ibm.com \
--to=hbryan@us.ibm.com \
--cc=goswin.brederlow@student-uni-tuebingen.de \
--cc=goswin.brederlow@student.uni-tuebingen.de \
--cc=linux-fsdevel-owner@vger.kernel.org \
--cc=linux-fsdevel@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=saffroy@ri.silicomp.fr \
--cc=torvalds@transmeta.com \
--cc=viro@math.psu.edu \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®