Re: [PATCH v2] geceric/362: check truncate can update file size correctly when truncate fails

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]



On Thu, Jun 30, 2016 at 04:25:49PM +0800, Wang Xiaoguang wrote:
> In btrfs, when truncate operation fails for enospc reason, file may still
> have some disk blocks, but it will fail to update filesize accordingly.
> 
> Kernel commit c0d2f61 has fixed this bug for btrfs:
>     btrfs: fix disk_i_size update bug when ftruncate() fails
> 
> Signed-off-by: Wang Xiaoguang <wangxg.fnst@xxxxxxxxxxxxxx>
> ---
> v2: move this test to generic test and add comments why testcase
> use reflink.

Thanks for the updated version. Did it fail for you when testing on
unpatched kernel? I ran the test more than 10 times on 4.6 kernel (which
doesn't have the fix) and all passed, as well as RHEL7 kernel.

Can you please confirm?

Thanks,
Eryu
--
To unsubscribe from this list: send the line "unsubscribe fstests" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Filesystems Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux