Subject: Re: bogus "/dev/wd0c: file system not clean (fs_flags=1); please fsck(8)"
To: Bernd Ernesti <email@example.com>
From: Tad Hunt <firstname.lastname@example.org>
Date: 02/20/2002 14:19:25
If I do a sync(8) before the "mount -u", I do not get the warning.
In message <20020220085348.A28511@arresum.veego.de>, you said:
;On Tue, Feb 19, 2002 at 04:42:42PM -0800, Tad Hunt wrote:
;> My question was why do I see the "file system not clean" warning
;> (from sys/ufs/ffs/ffs_vfsops.c) when I'm simply changing the mounted
;> partition from read/write to readonly (the "-u" flag to mount(8)).
;> without unmounting it first. I would expect the switch to readonly
;> to have flushed any pending writes, and then switch the filesystem
;> to readonly mode.
;No, this is not done automaticaly.
;man sync(8) and sync(2).