diff options
author | Theodore Ts'o <tytso@mit.edu> | 2017-02-16 22:02:35 -0500 |
---|---|---|
committer | Keun-young Park <keunyoung@google.com> | 2017-02-27 14:55:46 -0800 |
commit | 95d28de7e7824e6af00b0dedc9df4d46d2c8b58c (patch) | |
tree | f7e5b0394faab871be64d388ec50b77b9d3ebf38 /tests | |
parent | 0a9866d60bc1a582bd768b5a9dece84c7d29c56f (diff) | |
download | android_external_e2fsprogs-95d28de7e7824e6af00b0dedc9df4d46d2c8b58c.tar.gz android_external_e2fsprogs-95d28de7e7824e6af00b0dedc9df4d46d2c8b58c.tar.bz2 android_external_e2fsprogs-95d28de7e7824e6af00b0dedc9df4d46d2c8b58c.zip |
e2fsck: exit with exit status 0 if no errors were fixed
Previously, e2fsck would exit with a status code of 1 even though the
only changes that it made to the file system were various
optimziations and not fixing file system corruption. Since the man
page states that an exit status of 1 means "file system errors
corrupted", fix e2fsck to return an exit status of 0.
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/f_collapse_extent_tree/expect.1 | 2 | ||||
-rw-r--r-- | tests/f_compress_extent_tree_level/expect.1 | 2 | ||||
-rw-r--r-- | tests/f_convert_bmap/expect.1 | 2 | ||||
-rw-r--r-- | tests/f_convert_bmap_and_extent/expect.1 | 2 | ||||
-rw-r--r-- | tests/f_extent_htree/expect.1 | 2 | ||||
-rw-r--r-- | tests/f_jnl_errno/expect.1 | 2 | ||||
-rw-r--r-- | tests/f_journal/expect.1 | 2 | ||||
-rw-r--r-- | tests/f_orphan/expect.1 | 2 | ||||
-rw-r--r-- | tests/f_orphan_extents_inode/expect.1 | 2 | ||||
-rw-r--r-- | tests/f_rehash_dir/expect.1 | 2 | ||||
-rw-r--r-- | tests/f_unsorted_EAs/expect.1 | 2 |
11 files changed, 11 insertions, 11 deletions
diff --git a/tests/f_collapse_extent_tree/expect.1 b/tests/f_collapse_extent_tree/expect.1 index e2eb65e0..8165a589 100644 --- a/tests/f_collapse_extent_tree/expect.1 +++ b/tests/f_collapse_extent_tree/expect.1 @@ -13,4 +13,4 @@ Pass 5: Checking group summary information test_filesys: ***** FILE SYSTEM WAS MODIFIED ***** test_filesys: 12/128 files (0.0% non-contiguous), 19/512 blocks -Exit status is 1 +Exit status is 0 diff --git a/tests/f_compress_extent_tree_level/expect.1 b/tests/f_compress_extent_tree_level/expect.1 index a359c997..dd33f63d 100644 --- a/tests/f_compress_extent_tree_level/expect.1 +++ b/tests/f_compress_extent_tree_level/expect.1 @@ -20,4 +20,4 @@ Pass 5: Checking group summary information test_filesys: ***** FILE SYSTEM WAS MODIFIED ***** test_filesys: 12/128 files (8.3% non-contiguous), 26/512 blocks -Exit status is 1 +Exit status is 0 diff --git a/tests/f_convert_bmap/expect.1 b/tests/f_convert_bmap/expect.1 index 7d2ca86e..c387962f 100644 --- a/tests/f_convert_bmap/expect.1 +++ b/tests/f_convert_bmap/expect.1 @@ -23,4 +23,4 @@ Pass 5: Checking group summary information test_filesys: ***** FILE SYSTEM WAS MODIFIED ***** test_filesys: 12/128 files (8.3% non-contiguous), 570/2048 blocks -Exit status is 1 +Exit status is 0 diff --git a/tests/f_convert_bmap_and_extent/expect.1 b/tests/f_convert_bmap_and_extent/expect.1 index 7af91aa3..c86c5715 100644 --- a/tests/f_convert_bmap_and_extent/expect.1 +++ b/tests/f_convert_bmap_and_extent/expect.1 @@ -30,4 +30,4 @@ Pass 5: Checking group summary information test_filesys: ***** FILE SYSTEM WAS MODIFIED ***** test_filesys: 13/128 files (15.4% non-contiguous), 574/2048 blocks -Exit status is 1 +Exit status is 0 diff --git a/tests/f_extent_htree/expect.1 b/tests/f_extent_htree/expect.1 index 223ca697..ea484053 100644 --- a/tests/f_extent_htree/expect.1 +++ b/tests/f_extent_htree/expect.1 @@ -26,4 +26,4 @@ test_filesys: ***** FILE SYSTEM WAS MODIFIED ***** 0 sockets ------------ 343 files -Exit status is 1 +Exit status is 0 diff --git a/tests/f_jnl_errno/expect.1 b/tests/f_jnl_errno/expect.1 index c5729512..41342344 100644 --- a/tests/f_jnl_errno/expect.1 +++ b/tests/f_jnl_errno/expect.1 @@ -6,4 +6,4 @@ Pass 5: Checking group summary information test_filesys: ***** FILE SYSTEM WAS MODIFIED ***** test_filesys: 11/2048 files (9.1% non-contiguous), 1330/8192 blocks -Exit status is 1 +Exit status is 0 diff --git a/tests/f_journal/expect.1 b/tests/f_journal/expect.1 index a202c80c..0a18654d 100644 --- a/tests/f_journal/expect.1 +++ b/tests/f_journal/expect.1 @@ -59,4 +59,4 @@ Pass 5: Checking group summary information test_filesys: ***** FILE SYSTEM WAS MODIFIED ***** test_filesys: 53/2048 files (1.9% non-contiguous), 1409/8192 blocks -Exit status is 1 +Exit status is 0 diff --git a/tests/f_orphan/expect.1 b/tests/f_orphan/expect.1 index eddc1f8b..087ebee2 100644 --- a/tests/f_orphan/expect.1 +++ b/tests/f_orphan/expect.1 @@ -11,4 +11,4 @@ Pass 5: Checking group summary information test_filesys: ***** FILE SYSTEM WAS MODIFIED ***** test_filesys: 12/2048 files (0.0% non-contiguous), 1303/8192 blocks -Exit status is 1 +Exit status is 0 diff --git a/tests/f_orphan_extents_inode/expect.1 b/tests/f_orphan_extents_inode/expect.1 index 2eaab78a..5d713b36 100644 --- a/tests/f_orphan_extents_inode/expect.1 +++ b/tests/f_orphan_extents_inode/expect.1 @@ -7,4 +7,4 @@ Pass 5: Checking group summary information test_filesys: ***** FILE SYSTEM WAS MODIFIED ***** test_filesys: 12/16 files (0.0% non-contiguous), 21/100 blocks -Exit status is 1 +Exit status is 0 diff --git a/tests/f_rehash_dir/expect.1 b/tests/f_rehash_dir/expect.1 index 60767651..c1449ba0 100644 --- a/tests/f_rehash_dir/expect.1 +++ b/tests/f_rehash_dir/expect.1 @@ -7,4 +7,4 @@ Pass 5: Checking group summary information test_filesys: ***** FILE SYSTEM WAS MODIFIED ***** test_filesys: 105/2048 files (2.9% non-contiguous), 336/512 blocks -Exit status is 1 +Exit status is 0 diff --git a/tests/f_unsorted_EAs/expect.1 b/tests/f_unsorted_EAs/expect.1 index 7d588d7a..64b9045e 100644 --- a/tests/f_unsorted_EAs/expect.1 +++ b/tests/f_unsorted_EAs/expect.1 @@ -8,4 +8,4 @@ Pass 5: Checking group summary information test_filesys: ***** FILE SYSTEM WAS MODIFIED ***** test_filesys: 12/2048 files (0.0% non-contiguous), 1294/2048 blocks -Exit status is 1 +Exit status is 0 |