Whamcloud - gitweb
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 bba8b13..54ef029 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 9e12550..976062a 100644 (file)
@@ -173,6 +173,16 @@ errcode_t ext2fs_flush(ext2_filsys fs)
                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
         * we exit.)