From: Gordan B. <go...@bo...> - 2009-12-25 01:57:47
|
Since GlusterFS is backed by a local rather than a cluster file system, it is possible to fsck the file system properly before mounting. Here is a patch that implements fscking of the file system based on the same criteria as in RHEL5 rc.sysinit (mount counts, unclean shutdowns, etc.). I haven't tested it with a broken file system yet, but fsck seems to do a cursory glance at the fs and if it's clean, things just move on, so please treat this is as experimental at the moment. Most of this is ripped straight out of RHEL5 rc.sysinit, but it doesn't do the checking of things like fastboot, etc. The reason I did this is because I've had a problem in the past where a small amount of corruption crept in somehow (possibly through an unclean power-down) and caused problems. Gordan |