diff options
author | Theodore Ts'o <tytso@mit.edu> | 2001-06-22 20:35:38 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2001-06-22 20:35:38 -0400 |
commit | 42475e281d22dbefd7f0b399f6056f642fa0ab92 (patch) | |
tree | 95a3ab9f43ef00348e41ce74157c64ef9481b713 /e2fsck/super.c | |
parent | 20a57e98df16645999ae32ee13272c193172c586 (diff) | |
download | e2fsprogs-42475e281d22dbefd7f0b399f6056f642fa0ab92.tar.gz |
super.c (release_inode_blocks): Don't try to release the blocks if the
orphaned inode is a device file, symlink, or some other kind of
special file that doesn't have a block list.
Diffstat (limited to 'e2fsck/super.c')
-rw-r--r-- | e2fsck/super.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/e2fsck/super.c b/e2fsck/super.c index 7a4a64ab..1e67d1c6 100644 --- a/e2fsck/super.c +++ b/e2fsck/super.c @@ -172,6 +172,9 @@ static int release_inode_blocks(e2fsck_t ctx, ext2_ino_t ino, errcode_t retval; struct process_block_struct pb; + if (!ext2fs_inode_has_valid_blocks(inode)) + return 0; + pb.buf = block_buf + 3 * ctx->fs->blocksize; pb.ctx = ctx; pb.abort = 0; |