summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2009-11-15 01:36:49 (GMT)
committer Denys Vlasenko <vda.linux@googlemail.com>2009-11-15 01:36:49 (GMT)
commit0d7e2e7c3e7e5bd02d522dd504d4041a01313dce (patch)
treea0d3e96e1037809edd02ec503b8b838f7195e82f
parent389cca4b9ed07be8d873b2aae01f3eb0c3474f7c (diff)
downloadbusybox-0d7e2e7c3e7e5bd02d522dd504d4041a01313dce.tar.gz
busybox-0d7e2e7c3e7e5bd02d522dd504d4041a01313dce.tar.bz2
fsck: add comment clarifying exit codes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--e2fsprogs/fsck.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/e2fsprogs/fsck.c b/e2fsprogs/fsck.c
index fd0401b..3ec5b36 100644
--- a/e2fsprogs/fsck.c
+++ b/e2fsprogs/fsck.c
@@ -41,6 +41,16 @@
* API for fsck.something, NOT ad-hoc hacks in generic fsck. */
#define DO_PROGRESS_INDICATOR 0
+/* fsck 1.41.4 (27-Jan-2009) manpage says:
+ * 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
+ */
#define EXIT_OK 0
#define EXIT_NONDESTRUCT 1
#define EXIT_DESTRUCT 2
@@ -52,7 +62,6 @@
/*
* Internal structure for mount table entries.
*/
-
struct fs_info {
struct fs_info *next;
char *device;