From: Bill Bogstad (bogstad@blaze.cs.jhu.edu)
Date: 01/21/93


From: bogstad@blaze.cs.jhu.edu (Bill Bogstad)
Subject: Re: Linux file systems
Date: Fri, 22 Jan 1993 05:21:02 GMT

In article <93021.073006NU013809@NDSUVM1.BITNET> Greg Wettstein <NU013809@NDSUVM1.BITNET> writes:
>[asks for a filesystem "clean" flag indicating the system was
> shutdown normally the last time this filesystem was used.]
>...
>I would suspect that an ioctl or a kernel call would have to be implemented
>which when called would mark all mounted filesystems that had this
>attribute as clean. The reboot/halt/shutdown suites could be modified to
>sync the kernel, then mark the filesystems and then either halt or reboot.

        I think the "umount()" system call should do this. Shutdown already
umounts() all mounted filesystems so this will work with everything except
the root filesystem. Personally, I'm not sure it is such a bad idea to
force a check of the root filesystem anyway. So being unable to use this
"trick" with the root filesystem might not be such a bad thing.

                                Bill Bogstad