Subject: Re: bogus "/dev/wd0c: file system not clean (fs_flags=1); please fsck(8)"
To: None <>
From: Bernd Ernesti <>
List: tech-kern
Date: 02/20/2002 08:53:48
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).