Re: [PATCH] btrfs: check truncate can update file size correctly when truncate fails

2016-06-23 Thread Christoph Hellwig
On Thu, Jun 23, 2016 at 03:36:40PM +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. Any reason this isn't a generic test? Seems nothing in the test case really is

Re: [PATCH] btrfs: check truncate can update file size correctly when truncate fails

2016-06-23 Thread Eryu Guan
On Thu, Jun 23, 2016 at 03:36:40PM +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. > > Signed-off-by: Wang Xiaoguang > --- >

[PATCH] btrfs: check truncate can update file size correctly when truncate fails

2016-06-23 Thread Wang Xiaoguang
In btrfs, when truncate operation fails for enospc reason, file may still have some disk blocks, but it will fail to update filesize accordingly. Signed-off-by: Wang Xiaoguang --- tests/btrfs/124 | 86 +