Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 19 Aug 2004 19:47:52 +0300
From:      Giorgos Keramidas <keramida@linux.gr>
To:        current@freebsd.org
Subject:   Re: [REVIEW/TEST] Rewritten floppy driver.
Message-ID:  <20040819164751.GB4004@orion.daedalusnetworks.priv>
In-Reply-To: <20040819161000.GB843@gicco.homeip.net>
References:  <20040819141310.GA756@gicco.homeip.net> <19666.1092926344@critter.freebsd.dk> <20040819161000.GB843@gicco.homeip.net>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2004-08-19 18:10, Hanspeter Roth <hampi@rootshell.be> wrote:
> On Aug 19 at 16:39, Poul-Henning Kamp spoke:
> > >If a write protected floppy is attempted to be mounted writable and
> > >a write will be attempted on the floppy doesn't it prevent all
> > >other mounted filesystems from being unmounted?
> >
> > I'm trying to get to where we can fix this sort of stuff properly :-)
>
> If a writeprotected floppy can't be mounted writable it's
> sufficient.

The patch prevents read-write mounts of read-only floppies:

: orion# mount
: /dev/ad0s1a on / (ufs, NFS exported, local)
: devfs on /dev (devfs, local)
: /dev/ad0s4g on /home (ufs, NFS exported, local, soft-updates)
: /dev/ad0s4f on /usr (ufs, local, soft-updates)
: /dev/ad0s4e on /var (ufs, local, soft-updates)
:
: orion# mount -t ufs /dev/fd0 /mnt
: mount: /dev/fd0: Read-only file system
:
: orion# mount
: /dev/ad0s1a on / (ufs, NFS exported, local)
: devfs on /dev (devfs, local)
: /dev/ad0s4g on /home (ufs, NFS exported, local, soft-updates)
: /dev/ad0s4f on /usr (ufs, local, soft-updates)
: /dev/ad0s4e on /var (ufs, local, soft-updates)



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