From owner-freebsd-current@FreeBSD.ORG Mon Aug 29 23:31:17 2005 Return-Path: X-Original-To: freebsd-current@FreeBSD.org Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3857616A41F; Mon, 29 Aug 2005 23:31:17 +0000 (GMT) (envelope-from saturnero@freesbie.org) Received: from jail1-fbsd4.consiagnet.it (jail1-fbsd4.consiagnet.it [83.149.128.151]) by mx1.FreeBSD.org (Postfix) with ESMTP id B64E643D46; Mon, 29 Aug 2005 23:31:16 +0000 (GMT) (envelope-from saturnero@freesbie.org) Received: from [192.168.10.2] (host235-73.pool8256.interbusiness.it [82.56.73.235]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by jail1-fbsd4.consiagnet.it (Postfix) with ESMTP id 8895357AC; Tue, 30 Aug 2005 01:32:43 +0200 (CEST) Message-ID: <43139AC9.50705@freesbie.org> Date: Tue, 30 Aug 2005 01:31:21 +0200 From: Dario Freni User-Agent: Mozilla Thunderbird 1.0.6 (X11/20050828) X-Accept-Language: en-us, en MIME-Version: 1.0 To: "Christian S.J. Peron" References: <20050829205638.GA2458@freefall.freebsd.org> <20050829214131.GA2855@freefall.freebsd.org> In-Reply-To: <20050829214131.GA2855@freefall.freebsd.org> X-Enigmail-Version: 0.92.0.0 OpenPGP: url=http://www.saturnero.net/saturnero.asc Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enigC76DB8A492AF1C55B672FF16" Cc: freebsd-current@FreeBSD.org, pjd@FreeBSD.org Subject: Re: mdconfig recently broken? X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 29 Aug 2005 23:31:17 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enigC76DB8A492AF1C55B672FF16 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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 >>(iirc). >> >>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 >>md0 >>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 >>sberta:/usr/local/freesbie-clone/uzip# >> >>Bye and thanks in advance, >>Dario >> > > > 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 md0 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 -- Dario Freni (saturnero@freesbie.org) FreeSBIE developer (http://www.freesbie.org) GPG Public key at http://www.saturnero.net/saturnero.asc --------------enigC76DB8A492AF1C55B672FF16 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFDE5rMymi72IiShysRAnXaAKC5Qq8ht3hu460V2JSXS//FdL994QCeJPXW uRpYEARpBEkrajw/+Tckpuk= =6PfX -----END PGP SIGNATURE----- --------------enigC76DB8A492AF1C55B672FF16--