Files
linux/fs/ext4
Theodore Ts'o 5044c964f0 ext4: fix punch hole for inline_data file systems
commit c1e8220bd3 upstream.

If a program attempts to punch a hole on an inline data file, we need
to convert it to a normal file first.

This was detected using ext4/032 using the adv configuration.  Simple
reproducer:

mke2fs -Fq -t ext4 -O inline_data /dev/vdc
mount /vdc
echo "" > /vdc/testfile
xfs_io -c 'truncate 33554432' /vdc/testfile
xfs_io -c 'fpunch 0 1048576' /vdc/testfile
umount /vdc
e2fsck -fy /dev/vdc

Cc: stable@vger.kernel.org
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-05-15 14:35:03 +09:00
..
2015-04-02 23:47:42 -04:00
2023-05-15 14:03:11 +09:00
2016-09-05 23:21:43 -04:00
2015-04-02 23:47:42 -04:00
2016-03-09 23:49:05 -05:00
2023-05-15 08:25:24 +09:00
2023-05-15 14:03:11 +09:00
2017-10-13 11:27:08 +00:00
2018-04-12 09:54:41 -07:00