error code question
Denys Vlasenko
vda.linux at googlemail.com
Sun Nov 15 01:37:09 UTC 2009
On Saturday 14 November 2009 06:27, Christopher Barry wrote:
> Q: does BB fsck use these error codes? (taken from fsck 1.41.4 (27-Jan-2009))
> man 8 fsck
>
> The exit code returned by fsck is the sum of the following conditions:
> 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
> The exit code returned when multiple file systems are checked is the bit-wise OR of the exit codes for
> each file system that is checked.
bbox's fsck is just a driver program. It runs fsck.<fstype>
and ORs result codes. So if fsck.<fstype> adhere to that convention,
bbox fsck should be ok.
--
vda
More information about the busybox
mailing list