From owner-freebsd-current@FreeBSD.ORG Wed Dec 15 10:53:27 2004 Return-Path: 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 4948D16A4CE for ; Wed, 15 Dec 2004 10:53:27 +0000 (GMT) Received: from tigra.ip.net.ua (tigra.ip.net.ua [82.193.96.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7743D43D55 for ; Wed, 15 Dec 2004 10:53:26 +0000 (GMT) (envelope-from ru@ip.net.ua) Received: from localhost (rocky.ip.net.ua [82.193.96.2]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id iBFArPaj002498; Wed, 15 Dec 2004 12:53:25 +0200 (EET) (envelope-from ru@ip.net.ua) Received: from tigra.ip.net.ua ([82.193.96.10]) by localhost (rocky.ipnet [82.193.96.2]) (amavisd-new, port 10024) with LMTP id 80131-19; Wed, 15 Dec 2004 12:53:24 +0200 (EET) Received: from heffalump.ip.net.ua (heffalump.ip.net.ua [82.193.96.213]) by tigra.ip.net.ua (8.12.11/8.12.11) with ESMTP id iBFArNox002493 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Wed, 15 Dec 2004 12:53:24 +0200 (EET) (envelope-from ru@ip.net.ua) Received: (from ru@localhost) by heffalump.ip.net.ua (8.13.1/8.13.1) id iBFArR0L027545; Wed, 15 Dec 2004 12:53:27 +0200 (EET) (envelope-from ru) Date: Wed, 15 Dec 2004 12:53:27 +0200 From: Ruslan Ermilov To: Poul-Henning Kamp Message-ID: <20041215105326.GO25967@ip.net.ua> References: <20041215095901.GK25967@ip.net.ua> <43574.1103107578@critter.freebsd.dk> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="FilwpOHBrTVNlmJ3" Content-Disposition: inline In-Reply-To: <43574.1103107578@critter.freebsd.dk> User-Agent: Mutt/1.5.6i X-Virus-Scanned: by amavisd-new at ip.net.ua cc: current@FreeBSD.org Subject: Re: Background fsck is broken X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Wed, 15 Dec 2004 10:53:27 -0000 --FilwpOHBrTVNlmJ3 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Dec 15, 2004 at 11:46:18AM +0100, Poul-Henning Kamp wrote: > In message <20041215095901.GK25967@ip.net.ua>, Ruslan Ermilov writes: > > > >--KjSGHOmKKB2VUiQn > >Content-Type: text/plain; charset=3Dus-ascii > >Content-Disposition: inline > >Content-Transfer-Encoding: quoted-printable > > > >Hi, > > > >Here's another fsck(8) buglet. While booting single-user, / is > >mounted read-only, and "fsck -p /" succeeds as expected. While > >remounting / read-only (e.g., after shutting down from multi-user > >to single-user), it doesn't: >=20 > This is working as designed. >=20 > The way it works is that when you boot, the root filesystem opens > the device (r=3D1, w=3D0, e=3D0) thereby permitting fsck to open the > device for write. >=20 > When the root filesystem is upgraded to RW, the open is opgraded > to (r=3D1,w=3D1,e=3D1) and writing via /dev/mumble is no longer permitted. >=20 > Architecturally the way we fsck the root filesystem is highly bogus > and it would be much cleaner if mounted filesystems _always_ were > fsck'ed through a snapshot, but there are a unknown code to be written > to allow that to happen for the case where "unexpected softupdates > inconsistencies" are found. >=20 Are you saying it's not possible to downgrade the open to (r=3D1, w=3D0, e=3D0) when a file system is downgraded from R/W to R/O? Cheers, --=20 Ruslan Ermilov ru@FreeBSD.org FreeBSD committer --FilwpOHBrTVNlmJ3 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD8DBQFBwBemqRfpzJluFF4RAvqOAJ4vltnfZ8ax4RZT+j/pxz9mVmS78ACggnem G9dJXnGupt88opYBC7M+y6k= =qI34 -----END PGP SIGNATURE----- --FilwpOHBrTVNlmJ3--