public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Evgeny Stambulchik <Evgeny.Stambulchik@weizmann.ac.il>
To: Rob Landley <rob@landley.net>
Cc: linux-kernel@vger.kernel.org
Subject: Re: Weirdness of "mount -o remount,rw" with write-protected floppy
Date: Fri, 28 Oct 2005 15:15:56 +0200	[thread overview]
Message-ID: <4362248C.3060401@weizmann.ac.il> (raw)
In-Reply-To: <200510280726.56684.rob@landley.net>

Rob Landley wrote:

> It looks like one bug to me.  The initial mount figures out that it's read 
> only, and the actual writes fail correctly, but remount isn't checking for 
> read only (and thus isn't failing).

Right, but even after remount seemingly succeeds, an attempt to write to 
  an unwritable media should return an error nevertheless, as the 
corresponding syscall should fail, obviously. And it indeed happens for 
e.g. CDROM or an NFS volume (if you repeat all the steps from my 
original post, "touch" will return an error). Yet for floppy, it 
doesn't. I suspect that a "readonly-ness" is defined at a different 
level for floppy (e.g. status of the device itself, not media). This is 
just a wild guess.

Regards,

Evgeny

  reply	other threads:[~2005-10-28 13:16 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-27 11:57 Weirdness of "mount -o remount,rw" with write-protected floppy Evgeny Stambulchik
2005-10-27 15:05 ` Jon Masters
2005-10-29 11:58   ` Jon Masters
2005-10-29 13:10     ` Jon Masters
2005-10-27 21:09 ` Rob Landley
2005-10-28 11:55   ` Evgeny Stambulchik
2005-10-28 12:26     ` Rob Landley
2005-10-28 13:15       ` Evgeny Stambulchik [this message]
2005-10-28 13:50         ` Rob Landley
2005-10-28 14:52           ` Evgeny Stambulchik
2005-10-29  1:29             ` Rob Landley
2005-10-29 11:06               ` Evgeny Stambulchik
2005-10-29 16:02 ` Jon Masters
2005-10-29 17:05   ` 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=4362248C.3060401@weizmann.ac.il \
    --to=evgeny.stambulchik@weizmann.ac.il \
    --cc=linux-kernel@vger.kernel.org \
    --cc=rob@landley.net \
    /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