[REVIEW/TEST] Rewritten floppy driver.
Poul-Henning Kamp
phk at phk.freebsd.dk
Thu Aug 19 12:16:58 PDT 2004
In message <20040819191044.GB670 at gothmog.gr>, Giorgos Keramidas writes:
>On 2004-08-20 04:38, Antony Mawer <fbsd at mawer.org> wrote:
>> Giorgos Keramidas wrote:
>> >>If a writeprotected floppy can't be mounted writable it's
>> >>sufficient.
>> >
>> >The patch prevents read-write mounts of read-only floppies:
>> *snip*
>> >: orion# mount -t ufs /dev/fd0 /mnt
>> >: mount: /dev/fd0: Read-only file system
>>
>> Would a more optimal solution be to show a warning indicating that the
>> disk was write-protected, and proceed to mount the filesystem read-only?
>> This may be a ridiculous proposal - I don't know enough about the code
>> in question to say - but it was just a thought! :-)
No.
If mount(8) doesn't do exactly what you asked for it fails solid and
do nothing.
--
Poul-Henning Kamp | UNIX since Zilog Zeus 3.20
phk at FreeBSD.ORG | TCP/IP since RFC 956
FreeBSD committer | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.
More information about the freebsd-current
mailing list