Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Aug 2004 21:16:50 +0200
From:      "Poul-Henning Kamp" <phk@phk.freebsd.dk>
To:        Giorgos Keramidas <keramida@linux.gr>
Cc:        Antony Mawer <fbsd@mawer.org>
Subject:   Re: [REVIEW/TEST] Rewritten floppy driver. 
Message-ID:  <30912.1092943010@critter.freebsd.dk>
In-Reply-To: Your message of "Thu, 19 Aug 2004 22:10:44 %2B0300." <20040819191044.GB670@gothmog.gr> 

next in thread | previous in thread | raw e-mail | index | archive | help
In message <20040819191044.GB670@gothmog.gr>, Giorgos Keramidas writes:
>On 2004-08-20 04:38, Antony Mawer <fbsd@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@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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?30912.1092943010>