From: Bodo Eggert <harvested.in.lkml@7eggert.dyndns.org>
To: jonathan@jonmasters.org, Andrew Morton <akpm@osdl.org>,
cp@absolutedigital.net, linux-kernel@vger.kernel.org,
jcm@jonmasters.org, torvalds@osdl.org, viro@ftp.linux.org.uk,
hch@lst.de
Subject: Re: floppy regression from "[PATCH] fix floppy.c to store correct ..."
Date: Wed, 23 Nov 2005 18:39:27 +0100 [thread overview]
Message-ID: <E1Eeyae-00012o-CV@be1.lrz> (raw)
In-Reply-To: 5bUK2-61i-5@gated-at.bofh.it
Jon Masters <jonmasters@gmail.com> wrote:
> On 11/22/05, Andrew Morton <akpm@osdl.org> wrote:
>> In the meanwhile I think we should revert back to the 2.6.14 version of
>> floppy.c - the present problem is probably worse than the one which it
>> kinda-fixes.
>
> Ok, as you please. It's probably going to take something much more
> ugly to make this work with things as they stand - I'll get something
> out at the weekend.
I think it should be a general solution to flipped CP switches on floppies
and USB sticks as well as network block devices on a fs that got remounted
ro or hdparm -W.
The device needs a WP status that gets updated on open or mount (must
complete before open()/mount() completes), on failed write()s iff the write
failed because of write protection error and whenever checking is cheap.
If the check can't be done sanely on open() calls (as in the case of NBD),
asume it to be RW enabled unless we know otherwise (e.g. the user told us).
(re)mounts should allways enforce the check as long as it's possible.
The filesystems will need to get updated to use this status as well and
remount themselves ro (or do a panic/reboot, if desired).
This will still misbehave, but I think it will misbehave in a sane way. You
may get a rw mount on ro devices in corner cases, but you can't keep it. If
you erroneously got your device ro, you can update the status by remounting,
so you won't get stuck with a busy ro filesystem. "true>/dev/node" will
update the state, too, but I doubt it's usefullness unless the application
using the device is designed to take use of this feature.
--
Ich danke GMX dafür, die Verwendung meiner Adressen mittels per SPF
verbreiteten Lügen zu sabotieren.
next parent reply other threads:[~2005-11-23 17:37 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <59olg-7rC-3@gated-at.bofh.it>
[not found] ` <59rsT-3Co-27@gated-at.bofh.it>
[not found] ` <5arTK-5Wu-1@gated-at.bofh.it>
[not found] ` <5bAW4-8wm-19@gated-at.bofh.it>
[not found] ` <5bEYO-6oH-15@gated-at.bofh.it>
[not found] ` <5bOEG-5jk-19@gated-at.bofh.it>
[not found] ` <5bUK2-61i-5@gated-at.bofh.it>
2005-11-23 17:39 ` Bodo Eggert [this message]
2005-11-23 18:02 ` floppy regression from "[PATCH] fix floppy.c to store correct ..." Jon Masters
2005-11-16 5:47 Cal Peake
2005-11-16 8:59 ` Andrew Morton
2005-11-16 11:22 ` Jon Masters
2005-11-19 3:44 ` Jon Masters
2005-11-21 3:36 ` Cal Peake
2005-11-21 11:59 ` Jon Masters
2005-11-22 3:15 ` Linus Torvalds
2005-11-22 4:21 ` Jon Masters
2005-11-22 7:31 ` Andrew Morton
2005-11-22 11:56 ` Jon Masters
2005-11-22 22:16 ` Andrew Morton
2005-11-23 4:47 ` Jon Masters
2005-11-28 18:37 ` Bill Davidsen
2005-11-28 20:33 ` Jon Masters
2005-11-29 22:00 ` Bill Davidsen
2005-11-30 1:15 ` Jon Masters
2005-11-16 10:50 ` Mikael Pettersson
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=E1Eeyae-00012o-CV@be1.lrz \
--to=harvested.in.lkml@7eggert.dyndns.org \
--cc=7eggert@gmx.de \
--cc=akpm@osdl.org \
--cc=cp@absolutedigital.net \
--cc=hch@lst.de \
--cc=jcm@jonmasters.org \
--cc=jonathan@jonmasters.org \
--cc=linux-kernel@vger.kernel.org \
--cc=torvalds@osdl.org \
--cc=viro@ftp.linux.org.uk \
/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