mount oddities

From: Ruslan Ermilov <ru_at_FreeBSD.org>
Date: Wed, 8 Dec 2004 22:05:53 +0200
Hi Poul-Henning,

I first noticed this oddity with MS-DOS formatted floppies,
when no matter what floppy I insert into the drive later,
it's still treated as MS-DOS.

I believe the testcase below is related to the problem I'm
seeing.

dd if=/dev/zero of=image bs=1k count=1440
mdconfig -a -t vnode -f image -u 0
mount /dev/md0 /mnt
newfs /dev/md0
mount /dev/md0 /mnt && umount /mnt
mdconfig -du0
mdconfig -a -t vnode -f image -u 0
mount /dev/md0 /mnt
umount /mnt
mdconfig -du0

The second "mount" command should succeed but it doesn't.
Note that if you remove the first "mount" command, the
second one succeeds.


Cheers,
-- 
Ruslan Ermilov
ru_at_FreeBSD.org
FreeBSD committer

Received on Wed Dec 08 2004 - 19:05:57 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:24 UTC