]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
ChangeLog, closefs.c:
authorTheodore Ts'o <tytso@mit.edu>
Sun, 14 Jan 2001 18:03:43 +0000 (18:03 +0000)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 14 Jan 2001 18:03:43 +0000 (18:03 +0000)
  closefs.c (ext2fs_flush): Don't write out anything beyond the primary
   superblock if EXT2_INCOMPAT_JOURNAL_DEV is listed.

lib/ext2fs/ChangeLog
lib/ext2fs/closefs.c

index bba8b13bea4a419300a979e38f5a4ded436c9883..54ef029487e160fc31cd51f7e384dc8a50f2b7d9 100644 (file)
@@ -1,3 +1,9 @@
+2001-01-14  Theodore Ts'o  <tytso@valinux.com>
+
+       * closefs.c (ext2fs_flush): Don't write out anything beyond the
+                primary superblock if EXT2_INCOMPAT_JOURNAL_DEV is
+                listed.
+
 2001-01-12  Theodore Ts'o  <tytso@valinux.com>
 
        * imager.c: Fix gcc -Wall complaints and a series of bugs where
index 9e125500642fa0b23cb058cfde6ff4959788e506..976062ad4652ee1fc7f67dc6032c7f1408f0e628 100644 (file)
@@ -172,6 +172,16 @@ errcode_t ext2fs_flush(ext2_filsys fs)
        if (retval)
                goto errout;
 
+       /*
+        * If this is an external journal device, don't write out the
+        * block group descriptors or any of the backup superblocks
+        */
+       if (fs->super->s_feature_incompat &
+           EXT3_FEATURE_INCOMPAT_JOURNAL_DEV) {
+               retval = 0;
+               goto errout;
+       }
+
        /*
         * Set the state of the FS to be non-valid.  (The state has
         * already been backed up earlier, and will be restored when