mdconfig recently broken?

Dario Freni saturnero at
Mon Aug 29 23:31:17 GMT 2005

Christian S.J. Peron wrote:
>>Hi everybody,
>>due to limited connectivity in August, I've been able to
>>update my -CURRENT box only yesterday since the first days of August
>>I noticed that mdconfig -a -t vnode -f ${myfile} isn't working anymore
>>when ${myfile} is on a read-only filesystem:
>>sberta:/usr/local/freesbie-clone/uzip# mdconfig -a -t vnode -f usr.uzip
>>sberta:/usr/local/freesbie-clone/uzip# mdconfig -d -u 0
>>sberta:/usr/local/freesbie-clone/uzip# mount -fru /usr
>>sberta:/usr/local/freesbie-clone/uzip# mdconfig -a -t vnode -f usr.uzip
>>mdconfig: ioctl(/dev/mdctl): Read-only file system
>>This makes impossible to use compressed filesystems on devices like
>>cdrom or read-only diskless environment. Any idea? I'm using:
>>FreeBSD sberta.saturnero.sat 7.0-CURRENT FreeBSD 7.0-CURRENT #2: Sat Aug 27 18:1
>>5:39 CEST 2005     satu at sberta.saturnero.sat:/usr/obj/usr/src/sys/SBERTA  i386
>>Bye and thanks in advance,
> Come to think about it, -o readonly isnt going to help. the bottom line is,
> if the backing store is readonly, it should never be possible to write to it.

-o readonly seems to help:

# mdconfig -a -t vnode -f usr.uzip
mdconfig: ioctl(/dev/mdctl): Read-only file system
# mdconfig -a -t vnode -o readonly -f usr.uzip

Anyway, imho, the readonly option should be automatically set if the
backing store is readonly. Otherwise, this behaviour should be well
documented in mdconfig(8) and/or md(4).

Bye and thanks,

Dario Freni (saturnero at
FreeSBIE developer (
GPG Public key at
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 187 bytes
Desc: OpenPGP digital signature
Url :

More information about the freebsd-current mailing list