From: Jon Masters <jonathan@jonmasters.org>
To: Andrew Morton <akpm@osdl.org>
Cc: Jon Masters <jonathan@jonmasters.org>, linux-kernel@vger.kernel.org
Subject: Re: PATCH: fix-readonly-policy-use-and-floppy-ro-rw-status
Date: Sat, 5 Nov 2005 18:40:28 +0000 [thread overview]
Message-ID: <20051105184028.GD27767@apogee.jonmasters.org> (raw)
In-Reply-To: <20051105103358.2e61687f.akpm@osdl.org>
On Sat, Nov 05, 2005 at 10:33:58AM -0800, Andrew Morton wrote:
> Jon Masters <jonathan@jonmasters.org> wrote:
> >
> > [PATCH]: This modifies the gendisk and hd_struct structs to replace "policy"
> > with "readonly" (as that's the only use for this field). It also introduces a
> > new function disk_read_only, which behaves like the corresponding device
> > functions do. I've also replaced direct usage of the old policy fields with
> > calls to the appropriate function.
>
> These are separate things and should be done in separate patches, please.
I'm following up with another patch that just has the first bit (floppy)
removed.
> Because, for exmaple, we may decide to revert the floppy change only.
> Because, as I said off-list, being able to do `remount,rw' of a floppy after
> having flipped its switch is useful.
And as I said, the situation as it stands leads to potential data
corruption but I agree with you - we need a VFS callback to handle
readwrite/readonly change on remount I think. Comments?
Jon.
next prev parent reply other threads:[~2005-11-05 18:40 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-05 18:27 Jon Masters
2005-11-05 18:33 ` Andrew Morton
2005-11-05 18:40 ` Jon Masters [this message]
2005-11-05 18:44 ` Al Viro
2005-11-05 18:51 ` Jon Masters
2005-11-05 19:01 ` Al Viro
2005-11-05 19:39 ` Jon Masters
2005-11-05 18:42 ` Al Viro
2005-11-05 18:48 ` Jon Masters
2005-11-05 18:41 ` Jeff Garzik
2005-11-06 10:59 ` Jon Masters
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=20051105184028.GD27767@apogee.jonmasters.org \
--to=jonathan@jonmasters.org \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
/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®