On Thu, 2003-11-13 at 20:12, Jason Rhinelander wrote: Snip...
> From man fsck, the exit codes of fsck are as follows: > > 0 - No errors > 1 - File system errors corrected > 2 - System should be rebooted > 4 - File system errors left uncorrected > 8 - Operational error > 16 - Usage or syntax error > 32 - Fsck canceled by user request > 128 - Shared library error > > From that, it seems that 0, 1, and possibly 2 and 32 are acceptable, > but to make the acceptable values clearer (and easier if 32 is allowed) > we might consider changing the elif to: > > elif [ $((retval & ~(0|1|2|32))) -eq 0 ] > > That more clearly indicates that 0, 1, and 2 (or combinations thereof) > are accepted values, but anything else is not. It also allows us to > add, for example, 32, which IMHO seems like it should be allowed as > well. Yes, it isn't known that the filesystem is okay, but if I user > really wants to cancel it, they can. Additionally, 64 is currently not > defined - if it became something like "non-critical filesystem errors > left uncorrected", it'd be trivial to add. > Agreed except for return code 2. If the "System should be rebooted", then surely it shouldn't continue booting. I would argue that fsck.jfs shouldn't return code 2 after a journal log replay as that is a normal function, not an error. > > Now for the odditie: I have two gentoo boxes, both have recently run > > "emerge sync && emerge baselayout". I've double checked and both boxes > > have the same version of baselayout. /However/, they have different > > versions of checkfs! I've reemerged baselayout on both machines, but > > they still have different versions of checkfs 1.23 and 1.29. > > At a guess, I'd say the updated files are pending due to config > protection, and you haven't merged them yet with etc-update? Nope, on both systems etc-update returns: Scanning Configuration files... Exiting: Nothing left to do; exiting. :) If I get time later, I'll delete the offending file and re-emerge baselayout again to see what happens. If that doesn't get me the same version of checkfs on both systems, and given my limited knowledge of portage, I'm left wondering if there are two versions of baselayout-1.8.6.10-r1 kicking around on different mirrors (!). ~ Mike > > -- > -- Jason Rhinelander > -- Gossamer Threads, Inc. -- Dr. Michael C Lincoln Vision And Synthetic Environments University of Essex OFFICE: 01206 87 3708
signature.asc
Description: This is a digitally signed message part
