Thread (5 messages) 5 messages, 3 authors, 1999-01-15

Re: floppy driver bug: write-protect

From: Paul Mackerras <hidden>
Date: 1999-01-15 03:31:22

Brad Midgley [off-list ref] wrote:
is this a known bug?
well, I didn't know about it. :-)
on intel linux, if you try to mount a write-protected floppy disk
read-write, the mount succeeds but is demoted to read-only. 
Do you have access to an intel-linux box?  Could you do an strace on
the mount command on a write-protected floppy and see whether mount
does two mount system calls (the first failing with EROFS), or if it
does some other ioctl to check whether the disk is write-protected?
the current pmac kernel will mount the disk read-write and will allow
"writes" to the disk. the writes even appear to succeed and the mounted
OK, I need to check the write-protect status in the floppy_write
routine in swim3.c.

I have recently looked at the floppy driver source code in MkLinux,
which looks like it is derived from macos sources.  It looks like
there are a few tweaks which I need to do to the Linux/PPC driver.

Paul.

[[ This message was sent via the linuxppc-dev mailing list. Replies are ]]
[[ not forced back to the list, so be sure to  Cc linuxppc-dev  if your ]]
[[ reply is of general interest. To unsubscribe from linuxppc-dev, send ]]
[[ the message 'unsubscribe' to linuxppc-dev-request@lists.linuxppc.org ]]
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help