Files
apfstests/tests/btrfs
Anand Jain 4c2c678cd5 btrfs: test unaligned punch hole at ENOSPC
Try to punch hole with unaligned size and offset when the FS is
full. Mainly holes are punched at locations which are unaligned
with the file extent boundaries when the FS is full by data.
As the punching holes at unaligned location will involve
truncating blocks instead of just dropping the extents, it shall
involve reserving data and metadata space for delalloc and so data
alloc fails as the FS is full.

btrfs_punch_hole()
 btrfs_truncate_block()
   btrfs_check_data_free_space() <-- ENOSPC

We don't fail punch hole if the holes are aligned with the file
extent boundaries as it shall involve just dropping the related
extents, without truncating data extent blocks.

Signed-off-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
2018-10-06 17:40:09 +08:00
..
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2013-10-12 19:30:19 -05:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2013-12-03 10:29:29 +11:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2014-02-03 10:06:14 +11:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2016-01-11 15:05:20 +11:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2015-10-14 14:19:34 +11:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2017-01-27 16:06:12 +08:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2014-08-13 10:59:59 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2015-04-01 11:32:01 +11:00
2015-04-01 11:35:44 +11:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2015-09-21 13:06:18 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2016-07-19 12:20:43 +08:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2017-02-15 18:02:15 +08:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-09-16 19:56:08 +08:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2017-11-15 14:45:24 +08:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-09 11:35:50 +10:00
2018-06-03 22:16:15 +08:00
2018-06-09 11:35:50 +10:00
2018-06-03 22:16:15 +08:00
2018-06-09 11:35:50 +10:00
2018-06-03 22:16:15 +08:00
2018-10-06 17:40:09 +08:00