Message ID | 87hblvqb6c.fsf@openvz.org |
---|---|
State | Superseded, archived |
Headers | show |
--- a/fs/ext4/extents.c +++ b/fs/ext4/extents.c @@ -98,9 +98,15 @@ static int ext4_ext_truncate_extend_restart(handle_t >> > *handle, int needed) { int err; + static int fault = 0; if (!ext4_handle_valid(handle)) return 0; + if (inode->i_size % 1234 == 0 && fault++ % 2) { + printk("EXT4 TRUNC fault inject inode:%ld\n",inode->i_ino); + dump_stack(); + return -EAGAIN; + } And i've got complain from fsck about incorrect i_size which should be increased due to block beyond i_disk_size as expected.