Date: Wed, 27 Oct 2004 15:20:45 +0400 From: Pavel Merdine <freebsd-fs@merdin.com> To: Don Lewis <freebsd-fs@FreeBSD.org> Subject: Re[4]: panic again Message-ID: <162265023.20041027152045@merdin.com> In-Reply-To: <200410262006.i9QK67t7018640@gw.catspoiler.org> References: <1357841854.20041026213409@merdin.com> <200410262006.i9QK67t7018640@gw.catspoiler.org>
next in thread | previous in thread | raw e-mail | index | archive | help
Hello , Maybe I was wrong, but looking at the FFS code I see that softupdates does not work without -f : if (fs->fs_clean == 0) { fs->fs_flags |= FS_UNCLEAN; if (ronly || (mp->mnt_flag & MNT_FORCE)) { printf( "WARNING: %s was not properly dismounted\n", fs->fs_fsmnt); } else { printf("WARNING: R/W mount of %s denied. Filesystem is not clean - run fsck\n", fs->fs_fsmnt); error = EPERM; goto out; } } The clean flag does not seem to be affected by softupdates. My practice tells me that fsck is always required after unclean shutdown if I dont use -f. So what is the purpose of softupdates then? I repeat that maybe I'm wrong. But I just didn't see it working. Wednesday, October 27, 2004, 12:06:07 AM, you wrote: > On 26 Oct, Pavel Merdine wrote: >> Sorry, I didn't explain my point thoroughly. I meant non-working >> softupdates on non-faulty hardware. Press "Reset" on busy server with >> many drives, mount -f (softupdates mount?) and you will surely get a >> panic in an hour. > mount -f does not enable softupdates. The mount(8) man page says: > -f Forces the revocation of write access when trying to downgrade a > filesystem mount status from read-write to read-only. Also > forces the R/W mount of an unclean filesystem (dangerous; use > with caution). > In this case, dangerous means that further file system damage and/or a > system panic can happen. > Softupdates is enabled and disabled with > tunefs -n enable > and > tunefs -n disable > on an unmounted file system. -- / Pavel Merdine
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?162265023.20041027152045>