Re: Weirdness of "mount -o remount,rw" with write-protected floppy

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux