From owner-FreeBSD-users-jp@jp.freebsd.org  Fri Oct 16 23:45:59 1998
Received: by jaz.jp.freebsd.org (8.9.1+3.1W/8.7.3) id XAA16379;
	Fri, 16 Oct 1998 23:45:59 +0900 (JST)
	(envelope-from owner-FreeBSD-users-jp@jp.FreeBSD.org)
Received: from lain.tenchi.ne.jp (dp1-004.kawagoe.linkclub.or.jp [210.155.115.204])
	by jaz.jp.freebsd.org (8.9.1+3.1W/8.7.3) with ESMTP id XAA16370
	for <FreeBSD-users-jp@jp.freebsd.org>; Fri, 16 Oct 1998 23:45:52 +0900 (JST)
	(envelope-from toshi@tenchi.ne.jp)
Received: (from toshi@localhost)
	by lain.tenchi.ne.jp (8.8.8/3.6Wb) id XAA00395;
	Fri, 16 Oct 1998 23:42:04 +0900 (JST)
Date: Fri, 16 Oct 1998 23:42:04 +0900 (JST)
Message-Id: <199810161442.XAA00395@lain.tenchi.ne.jp>
To: FreeBSD-users-jp@jp.freebsd.org
From: Toshihiko ARAI <clover@air.linkclub.or.jp>
In-Reply-To: <19981016023634T.rik@mtb.biglobe.ne.jp>
References: <19981016023634T.rik@mtb.biglobe.ne.jp>
X-Mailer: VM 5.96 (beta) / Mule 2.3 (SUETSUMUHANA) based on 19.28.1
Mime-Version: 1.0 (generated by tm-edit 7.101)
Content-Type: text/plain; charset=ISO-2022-JP
Reply-To: FreeBSD-users-jp@jp.freebsd.org
Precedence: bulk
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+980914
X-Sequence: FreeBSD-users-jp 34090
Subject: [FreeBSD-users-jp 34090] Re: msdosfs bug?
Errors-To: owner-FreeBSD-users-jp@jp.freebsd.org
Sender: owner-FreeBSD-users-jp@jp.freebsd.org

$B?70f$G$9!#(B

+ [FreeBSD-users-jp 34049] $B$N5-;v$G(B Rikito INAKAZU $B$5$s$O=q$-$^$7$?!#(B

> 	panic: msdosfs_sync: rofs mod
> $B$H$$$C$F(B reboot $B$7$F$7$^$$$^$7$?!#(B

$B$3$A$i$G$b:F8=$7$^$7$?!#(B

> $B$I$&$d$i(B 2.2.7 $B$G$+$J$jJQ99$5$l$?$i$7$$(B msdosfs $B$N(B
> $B%P%0$+$J$H;W$C$F$$$k$N$G$9$,!#(B

> $B$3$l$OK\J*$N%P%0$J$s$G$7$g$&$+!)(B > $B<1<T$NJ}!9(B

$BK\J*$N%P%0$G$9!#(B(^^;
$B$o$?$7$b>/$7$@$14X78<T$G$9$,!"3N$+$K$3$N$h$&$J%F%9%H$O9T$J$C(B
$B$F$$$^$;$s$G$7$?!#$G!";CDjE*$J(B patch $B$G$9!#(B

Index: msdosfs_vfsops.c
===================================================================
RCS file: /usr/tmp/cvsup/cvs/PAO/sys/msdosfs/msdosfs_vfsops.c,v
retrieving revision 1.1.1.3
diff -u -r1.1.1.3 msdosfs_vfsops.c
--- msdosfs_vfsops.c	1998/07/24 10:22:29	1.1.1.3
+++ msdosfs_vfsops.c	1998/10/16 14:11:39
@@ -259,7 +259,14 @@
 			flags = WRITECLOSE;
 			if (mp->mnt_flag & MNT_FORCE)
 				flags |= FORCECLOSE;
+#ifndef __FreeBSD_version
+			if (vfs_busy(mp))
+				return EBUSY;
+#endif
 			error = vflush(mp, NULLVP, flags);
+#ifndef __FreeBSD_version
+			vfs_unbusy(mp);
+#endif
 		}
 		if (!error && (mp->mnt_flag & MNT_RELOAD))
 			/* not yet implemented */
@@ -269,7 +276,7 @@
 #ifdef __FreeBSD_version
 		if ((pmp->pm_flags & MSDOSFSMNT_RONLY) && (mp->mnt_kern_flag & MNTK_WANTRDWR)) {
 #else
-		if ((pmp->pm_flags & MSDOSFSMNT_RONLY) && (mp->mnt_flag & MNT_RDONLY) == 0) {
+		if ((pmp->pm_flags & MSDOSFSMNT_RONLY) && (mp->mnt_flag & MNT_WANTRDWR)) {
 #endif
 			/*
 			 * If upgrade to read-write by non-root, then verify

--
PAO $BF0:nJs9p(B, SUPPORTED.CARDS $BEPO?MQ%"%I%l%9(B <pao-report@clave.gr.jp>
				 $B?70fMxI'(B <clover@air.linkclub.or.jp>
