diff options
author | Theodore Ts'o <tytso@mit.edu> | 2001-01-14 18:03:43 +0000 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2001-01-14 18:03:43 +0000 |
commit | 8077994116824ae55d4b8f9a26971a7d11e089bf (patch) | |
tree | ad43f70096ad4af23d9169d603d94e3a869976ea /lib | |
parent | 990d4296706c911f7d29667d147104b8f0ac9f34 (diff) | |
download | e2fsprogs-8077994116824ae55d4b8f9a26971a7d11e089bf.tar.gz |
ChangeLog, closefs.c:
closefs.c (ext2fs_flush): Don't write out anything beyond the primary
superblock if EXT2_INCOMPAT_JOURNAL_DEV is listed.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/ext2fs/ChangeLog | 6 | ||||
-rw-r--r-- | lib/ext2fs/closefs.c | 10 |
2 files changed, 16 insertions, 0 deletions
diff --git a/lib/ext2fs/ChangeLog b/lib/ext2fs/ChangeLog index bba8b13b..54ef0294 100644 --- a/lib/ext2fs/ChangeLog +++ b/lib/ext2fs/ChangeLog @@ -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 diff --git a/lib/ext2fs/closefs.c b/lib/ext2fs/closefs.c index 9e125500..976062ad 100644 --- a/lib/ext2fs/closefs.c +++ b/lib/ext2fs/closefs.c @@ -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.) |