Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 21 Jun 2006 01:51:39 +0400
From:      Stanislav Sedov <stas@310.ru>
To:        freebsd-fs@freebsd.org
Subject:   Re: ext2fs marked dirty when mounted read-only
Message-ID:  <20060621015139.50da7a26.stas@310.ru>
In-Reply-To: <Pine.GSO.4.44.0606201204440.15105-100000@eesfc20.engr.ccny.cuny.edu>
References:  <20060620163718.26387be9.stas@310.ru> <Pine.GSO.4.44.0606201204440.15105-100000@eesfc20.engr.ccny.cuny.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
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.         <ssedov@mbsd.msk.ru>
=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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060621015139.50da7a26.stas>