diff options
author | Flavio Leitner <flavio.leitner@gmail.com> | 2007-06-12 14:54:26 -0300 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2007-07-10 12:02:04 +0200 |
commit | 986d88f0f5174aa044fe5d5dad6eb84db11e18fc (patch) | |
tree | 3c3cd45a1d90de5316a6dae14a4ec084b53be41e /libparted/fs/ext2 | |
parent | 640f523b9e200874bc46348370f56e68dfe7107c (diff) | |
download | parted-986d88f0f5174aa044fe5d5dad6eb84db11e18fc.tar.gz |
Fix block state checking for realocated blocks
A busy block should be realocated and it's correct in
ext2_block_relocator_mark(), but not in ext2_metadata_push().
Signed-off-by: Flavio Leitner <flavio.leitner@gmail.com>
Signed-off-by: Jim Meyering <jim@meyering.net>
Diffstat (limited to 'libparted/fs/ext2')
-rw-r--r-- | libparted/fs/ext2/ext2_meta.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libparted/fs/ext2/ext2_meta.c b/libparted/fs/ext2/ext2_meta.c index d48097c..dd871c8 100644 --- a/libparted/fs/ext2/ext2_meta.c +++ b/libparted/fs/ext2/ext2_meta.c @@ -65,7 +65,7 @@ int ext2_metadata_push(struct ext2_fs *fs, blk_t newsize) if (fs->opt_debug) { for (j=0;j<diff;j++) - if (ext2_get_block_state(fs, fromblock+j)) + if (!ext2_get_block_state(fs, fromblock+j)) { fprintf(stderr, "error: block relocator " |