non-zero, then assume that the device/socket/fifo inode
is bogus.
* pass1.c (check_size): Fix logic in check_size; the previous code
only offered to clear the inode size fields if both size
and i_size_high were zero.
+ (e2fsck_pass1_check_device_inode): If i_blocks is
+ non-zero, then assume that the device/socket/fifo inode
+ is bogus.
2001-08-09 Theodore Tso <tytso@valinux.com>
int i;
/*
+ * If i_blocks is non-zero, then this is a bogus device/fifo/socket
+ */
+ if (inode->i_blocks)
+ return 1;
+ /*
* We should be able to do the test below all the time, but
* because the kernel doesn't forcibly clear the device
* inode's additional i_block fields, there are some rare