From owner-freebsd-current@FreeBSD.ORG Sun Feb 3 13:30:08 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 5154E16A421 for ; Sun, 3 Feb 2008 13:30:08 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from palm.hoeg.nl (mx0.hoeg.nl [IPv6:2001:610:652::211]) by mx1.freebsd.org (Postfix) with ESMTP id 1AF5113C458 for ; Sun, 3 Feb 2008 13:30:08 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: by palm.hoeg.nl (Postfix, from userid 1000) id 8F8561CC4E; Sun, 3 Feb 2008 14:30:19 +0100 (CET) Date: Sun, 3 Feb 2008 14:30:19 +0100 From: Ed Schouten To: Yar Tikhiy Message-ID: <20080203133019.GL1179@hoeg.nl> References: <20080203121514.GI3539@comp.chem.msu.su> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="HLsZ5Z1opAQvdr2J" Content-Disposition: inline In-Reply-To: <20080203121514.GI3539@comp.chem.msu.su> User-Agent: Mutt/1.5.17 (2007-11-01) Cc: FreeBSD Current Subject: Re: fsck remounts / read-write? 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: Sun, 03 Feb 2008 13:30:08 -0000 --HLsZ5Z1opAQvdr2J Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Yar Tikhiy wrote: > Hi all, >=20 > Has anybody else noticed the following strangeness: running fsck > on the read-only / (from single user) results in the / mount upgraded > to read-write? E.g.: >=20 > Trying to mount root from ufs:/dev/ad0s3a > WARNING: / was not properly dismounted > start_init: trying /sbin/init > Enter full pathname of shell or RETURN for /bin/sh: > # mount > /dev/ad0s3a on / (ufs, local, read-only) > devfs on /dev (devfs, local) > # fsck / > ** /dev/ad0s3a > ** Last Mounted on / > ** Root file system > ** Phase 1 - Check Blocks and Sizes > ** Phase 2 - Check Pathnames > ** Phase 3 - Check Connectivity > ** Phase 4 - Check Reference Counts > ** Phase 5 - Check Cyl groups > 3850 files, 189623 used, 64192 free (680 frags, 7939 blocks, 0.3% fragme= ntation) > ***** FILE SYSTEM MARKED CLEAN ***** > # mount > /dev/ad0s3a on / (ufs, local) > devfs on /dev (devfs, local) >=20 > I guess that `fsck /' issues a mount reload after modifying the FS, > but IMHO it shouldn't remount the FS read-write, should it? Could be related to this PR: http://www.freebsd.org/cgi/query-pr.cgi?pr=3Dbin/106636 --=20 Ed Schouten WWW: http://g-rave.nl/ --HLsZ5Z1opAQvdr2J Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.8 (FreeBSD) iEYEARECAAYFAkelwesACgkQ52SDGA2eCwXKoACdHm0ifpBLTw6MRxENkDLeKqFN Fe8AnRNHv/jah2A9UasTOAXZOBuAjvRn =AqFN -----END PGP SIGNATURE----- --HLsZ5Z1opAQvdr2J--