Subject: Re: bogus "/dev/wd0c: file system not clean (fs_flags=1); please fsck(8)"
To: Bernd Ernesti <email@example.com>
From: John Franklin <firstname.lastname@example.org>
Date: 02/20/2002 11:34:21
On Wed, Feb 20, 2002 at 08:53:48AM +0100, Bernd Ernesti wrote:
> 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).
Would your opinion be that mount -u call sync(2) before attempting a
switch from rw->ro? It would seem to me to be The Right Thing To Do.
ICBM: 35°48'19"N 78°46'39"W