]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
ext2fs_mkjournal(): Don't allocate an extra block to the journal
authorTheodore Ts'o <tytso@mit.edu>
Wed, 27 Aug 2008 20:23:30 +0000 (16:23 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 27 Aug 2008 21:03:37 +0000 (17:03 -0400)
Addresses-Sourceforge-Bug: 1483791

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
lib/ext2fs/mkjournal.c
tests/f_badjour_indblks/expect.1
tests/f_badjour_indblks/expect.2
tests/f_badjourblks/expect.1
tests/f_badjourblks/expect.2
tests/f_miss_journal/expect.1
tests/f_miss_journal/expect.2

index e55dcbda772aaa3472dccebdd53afaaf9530ba76..3cae874be07af2b7811ce0c671f859f133975eab 100644 (file)
@@ -225,7 +225,7 @@ static int mkjournal_proc(ext2_filsys       fs,
                es->err = retval;
                return BLOCK_ABORT;
        }
-       if (blockcnt > 0)
+       if (blockcnt >= 0)
                es->num_blocks--;
 
        es->newblocks++;
index 0190bf2abdbb6f18b8578aac54e3a910b714436d..d80da89522957bf057ab237e81dbf37039215606 100644 (file)
@@ -29,5 +29,5 @@ Creating journal (1024 blocks):  Done.
 *** journal has been re-created - filesystem is now ext3 again ***
 
 test_filesys: ***** FILE SYSTEM WAS MODIFIED *****
-test_filesys: 11/256 files (0.0% non-contiguous), 1112/8192 blocks
+test_filesys: 11/256 files (0.0% non-contiguous), 1111/8192 blocks
 Exit status is 1
index 35365fad4887987f89841e2d2f8bd4ea2ed76a8a..3fbb8b35fbf8f9f76142ff5863a32a322e2ed6f1 100644 (file)
@@ -3,5 +3,5 @@ Pass 2: Checking directory structure
 Pass 3: Checking directory connectivity
 Pass 4: Checking reference counts
 Pass 5: Checking group summary information
-test_filesys: 11/256 files (0.0% non-contiguous), 1112/8192 blocks
+test_filesys: 11/256 files (0.0% non-contiguous), 1111/8192 blocks
 Exit status is 0
index 5a0bfef524a25937c68ef61dbcea2f4f5dea499c..cd86fc410f3297c2412da2386dafb77798f1c478 100644 (file)
@@ -27,5 +27,5 @@ Creating journal (1024 blocks):  Done.
 *** journal has been re-created - filesystem is now ext3 again ***
 
 test_filesys: ***** FILE SYSTEM WAS MODIFIED *****
-test_filesys: 11/256 files (0.0% non-contiguous), 1080/8192 blocks
+test_filesys: 11/256 files (0.0% non-contiguous), 1079/8192 blocks
 Exit status is 1
index 632dc71bbdce638ed7af8cfbc532e77fed167e9e..7c5070349f8c2b9252204d2b5cc44ebe3aa4ab1b 100644 (file)
@@ -3,5 +3,5 @@ Pass 2: Checking directory structure
 Pass 3: Checking directory connectivity
 Pass 4: Checking reference counts
 Pass 5: Checking group summary information
-test_filesys: 11/256 files (0.0% non-contiguous), 1080/8192 blocks
+test_filesys: 11/256 files (0.0% non-contiguous), 1079/8192 blocks
 Exit status is 0
index cad69f6325106eaf01e66e37430857805c082d57..7d696f8e387c47f9d4bffe07c30b7ab4839d1d42 100644 (file)
@@ -25,5 +25,5 @@ Creating journal (1024 blocks):  Done.
 *** journal has been re-created - filesystem is now ext3 again ***
 
 test_filesys: ***** FILE SYSTEM WAS MODIFIED *****
-test_filesys: 11/256 files (0.0% non-contiguous), 1080/2048 blocks
+test_filesys: 11/256 files (0.0% non-contiguous), 1079/2048 blocks
 Exit status is 1
index 1e8c47f9ee2fe2b861db3593859ae4338e2afda0..ad327630edb7293d95355062e75049111eefe310 100644 (file)
@@ -3,5 +3,5 @@ Pass 2: Checking directory structure
 Pass 3: Checking directory connectivity
 Pass 4: Checking reference counts
 Pass 5: Checking group summary information
-test_filesys: 11/256 files (0.0% non-contiguous), 1080/2048 blocks
+test_filesys: 11/256 files (0.0% non-contiguous), 1079/2048 blocks
 Exit status is 0