From owner-freebsd-fs@FreeBSD.ORG Tue Jun 20 21:52:25 2006 Return-Path: X-Original-To: freebsd-fs@freebsd.org Delivered-To: freebsd-fs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C128B16A474 for ; Tue, 20 Jun 2006 21:52:25 +0000 (UTC) (envelope-from stas@310.ru) Received: from com1.ht-systems.ru (com1.ht-systems.ru [83.97.104.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2454243D79 for ; Tue, 20 Jun 2006 21:52:18 +0000 (GMT) (envelope-from stas@310.ru) Received: from [213.87.86.28] (helo=fonon.realnet) by com1.ht-systems.ru with esmtpa (Exim 4.62) (envelope-from ) id 1Fso7V-0008Q3-U7 for freebsd-fs@freebsd.org; Wed, 21 Jun 2006 01:50:52 +0400 Received: from fonon.realnet (localhost [127.0.0.1]) by fonon.realnet (8.13.6/8.13.6) with ESMTP id k5KLpfSo020404 for ; Wed, 21 Jun 2006 01:51:41 +0400 (MSD) (envelope-from stas@fonon.realnet) Received: (from stas@localhost) by fonon.realnet (8.13.6/8.13.6/Submit) id k5KLpdYp020403; Wed, 21 Jun 2006 01:51:39 +0400 (MSD) (envelope-from stas) Date: Wed, 21 Jun 2006 01:51:39 +0400 From: Stanislav Sedov To: freebsd-fs@freebsd.org Message-Id: <20060621015139.50da7a26.stas@310.ru> In-Reply-To: References: <20060620163718.26387be9.stas@310.ru> Organization: MBSD labs, Inc. X-Mailer: carrier-pigeon X-Operating-System: FreeBSD Mime-Version: 1.0 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable X-Spam-Flag: SKIP X-Spam-Yversion: Spamooborona 1.5.2 Subject: Re: ext2fs marked dirty when mounted read-only X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 20 Jun 2006 21:52:25 -0000 On Tue, 20 Jun 2006 12:06:45 -0400 (EDT) hardware@ee.ccny.cuny.edu wrote: > I tried that modification. Still the same problem. -kr >=20 Ok, it was my fault. This should work (actually, have no time to test) --- /sys/gnu/fs/ext2fs/ext2_vfsops.c.orig Wed Jun 21 01:49:08 2006 +++ /sys/gnu/fs/ext2fs/ext2_vfsops.c Wed Jun 21 01:48:57 2006 @@ -599,7 +599,7 @@ int error; int ronly; =20 - ronly =3D vfs_flagopt(mp->mnt_optnew, "ro", NULL, 0); + ronly =3D (mp->mnt_flag & MNT_RDONLY) !=3D 0; /* XXX: use VOP_ACESS to check FS perms */ DROP_GIANT(); g_topology_lock(); --=20 Stanislav Sedov MBSD labs, Inc. =F2=CF=D3=D3=C9=D1, =ED=CF=D3=CB=D7=C1 http://mbsd.msk.ru -------------------------------------------------------------------- If the facts don't fit the theory, change the facts. -- A. Einstein -------------------------------------------------------------------- PGP fingerprint: F21E D6CC 5626 9609 6CE2 A385 2BF5 5993 EB26 9581