NetBSD-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

bin/39607: newfs(_msdos) falsly? reports about "read-only filesystem" w/ VND



>Number:         39607
>Category:       bin
>Synopsis:       newfs(_msdos) falsly? reports about "read-only filesystem" w/ 
>VND
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    bin-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Sep 22 03:40:00 +0000 2008
>Originator:     Martin S. Weber
>Release:        4.99.72 / i386
>Organization:
me again inc.
>Environment:
NetBSD agamemnon.entropie.local 4.99.72 NetBSD 4.99.72 (AGAMEMNON) #4: Sat Sep 
20 20:45:58 EDT 2008  
root%agamemnon.entropie.local@localhost:/home/netbsd/obj/sys/arch/i386/compile/AGAMEMNON
 i386
>Description:
Maybe this is too obvious for you people... newfs_msdos complains on a 
vnconfig'd file that it's a read-only filesystem. It would then fail on the 
block device but work on the character device (you maybe expect that). It then 
in both cases complains about the r/o fs (huh?) and exits with status 1, 
although it worked in the latter case (as you are then able to mount). [[yes 
yes I'll use newfs -ZFs from now on]] See also below.
>How-To-Repeat:
cd /tmp
mkdir -p mnt
dd if=/dev/zero of=msdos.bin bs=1m count=10
vnconfig vnd0 /tmp/msdos.bin
newfs_msdos /dev/vnd0a
#newfs_msdos: warning: /dev/vnd0a is not a character device
# /dev/vnd0a: 20424 sectors in 2553 FAT12 clusters (4096 bytes/cluster)
# MBR type: 1
# bps=512 spc=8 res=1 nft=2 rde=512 sec=20480 mid=0xf0 spf=8 spt=32 hds=64 hid=0
# newfs_msdos: /dev/vnd0a: Read-only file system
echo $?
# 1
mount -t msdos /dev/vnd0a mnt
# mount_msdos: /dev/vnd0a on /tmp/mnt: Invalid argument
newfs_msdos /dev/rvnd0a
# /dev/rvnd0a: 20424 sectors in 2553 FAT12 clusters (4096 bytes/cluster)
# MBR type: 1
# bps=512 spc=8 res=1 nft=2 rde=512 sec=20480 mid=0xf0 spf=8 spt=32 hds=64 hid=0
# newfs_msdos: /dev/rvnd0a: Read-only file system
echo $?
# 1
mount -t msdos /dev/vnd0a mnt
# works.
>Fix:
dunno.



Home | Main Index | Thread Index | Old Index