home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.os.linux
- Path: sparky!uunet!unislc!erc
- From: erc@unislc.uucp (Ed Carp)
- Subject: Re: Linux file systems
- X-Newsreader: TIN [version 1.1 PL6]
- References: <93021.073006NU013809@NDSUVM1.BITNET>
- Message-ID: <1993Jan23.081706.1833@unislc.uucp>
- Organization: Unisys Corporation SLC
- Date: Sat, 23 Jan 1993 08:17:06 GMT
- Lines: 31
-
- Greg Wettstein (NU013809@NDSUVM1.BITNET) wrote:
-
- : The first thing the configuration scripts would do would be to call the
- : file system checking programs which would in turn check the devices
- : status to determine whether or not there was the potential of a damaging
- : shutdown.
- :
- : If I am overlooking something that already exists I would appreciate a
- : pointer on implementing this. I am re-writing our network's configuration
- : scripts and would like to include this functionality so that reboots will
- : be handled in an elegant fashion. Similar functionality can be kludged
- : via invisible files and the like but a kernel/filesystem based approach
- : has the flavor of a cleaner implementation. Comments, suggestions??
-
- Most OS's have two things: (1) a clean flag in the superblock of every
- filesystem, and (2) a '-p' option (or similar) to do a 'quick 'n' dirty'
- fsck, just to check that the FS was unmounted cleanly. I hacked my XENIX
- /etc/rc script to automatically do an fsck if the mount failed. So, mount()
- would check the clean flag - if it was set, mount() succeeded, then cleared
- the flag. If it wasn't set, mount would fail. umount() set the clean flag.
- So, if the OS shut down ungracefully, the clean flag wouldn't be set, causing
- the mount to fail.
-
- I think this should be implemented - what's to prevent one from mounting an
- inconsistent filesystem? If one does this, one can *really* screw up their
- FS... :(
- --
- Ed Carp erc@apple.com, erc@saturn.upl.com 801/538-0177
- 1935 will go down in history. For the first time, a civilized nation has
- full gun registration. Our streets will be safer, our police more efficient,
- and the world will follow our lead into the future. --Adolf Hitler
-