Return to BSD News archive
Path: sserve!newshost.anu.edu.au!munnari.oz.au!constellation!osuunx.ucc.okstate.edu!moe.ksu.ksu.edu!vixen.cso.uiuc.edu!uwm.edu!cs.utexas.edu!uunet!haven.umd.edu!umd5.umd.edu!elea.umd.edu!mark From: mark@elea.umd.edu (Mark Sienkiewicz) Newsgroups: comp.os.386bsd.questions Subject: Re: what is fs_clean for? Date: 30 Sep 1993 21:03:05 GMT Organization: Zeno, IPST, University of Maryland Lines: 32 Message-ID: <28fhi9$adv@umd5.umd.edu> References: <28da76$fhf@acsc.com> <28ekig$an2@wzv.win.tue.nl> NNTP-Posting-Host: elea.umd.edu In article <28ekig$an2@wzv.win.tue.nl>, Guido van Rooij <guido@gvr.win.tue.nl> wrote: >jerry@acsc.com (Jerry Chen) writes: > >>In the superblock of UFS, there are two fields: >> >>ufs/fs.h: char fs_clean; /* file system is clean flag */ >>My guess is that they are used to determine if the file system is clean, >No, your guess was right. However you need more then just these flags. A >patched fsck that checks these bits plus kernel modifications to unmount >ufs filesystems on reboot. >This was posted a long time ago when only 386bsd existed, but is in the >FreeBSD current source tree and should be available with the net release. >I assume NetBSD has a similar thing, though I am not sure. I wrote patches that do this and sent them to NetBSD. When 0.9 was released, this change is still listed in the "TODO" file and mail to the contact address falls elicits no response. [see postscript] I have patches relative to Netbsd 0.8. Send me mail if you want them. I did them with a kind of large context, so if you have something other than Netbsd 0.8, you may have to apply them by hand, but it should be easy. I've been using it since June and had no problems. Mark S. postscript: If anybody from Netbsd sees this, you're welcome to contact me.