home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / linux / 25201 < prev    next >
Encoding:
Text File  |  1993-01-23  |  2.0 KB  |  43 lines

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