ext2fs marked dirty when mounted read-only
Stanislav Sedov
stas at 310.ru
Tue Jun 20 21:52:25 UTC 2006
On Tue, 20 Jun 2006 12:06:45 -0400 (EDT)
hardware at ee.ccny.cuny.edu wrote:
> I tried that modification. Still the same problem. -kr
>
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;
- ronly = vfs_flagopt(mp->mnt_optnew, "ro", NULL, 0);
+ ronly = (mp->mnt_flag & MNT_RDONLY) != 0;
/* XXX: use VOP_ACESS to check FS perms */
DROP_GIANT();
g_topology_lock();
--
Stanislav Sedov MBSD labs, Inc. <ssedov at mbsd.msk.ru>
Россия, Москва 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
More information about the freebsd-fs
mailing list