]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
fs/ntfs3: Fix attr_insert_range at end of file
authorKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
Thu, 30 May 2024 07:44:17 +0000 (10:44 +0300)
committerKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
Wed, 26 Jun 2024 12:48:50 +0000 (15:48 +0300)
commit519f38de57cd0c5e0043795b5fb0686c97311f6d
tree0de8262bb5b4c012b848beba99cf1bf2d2e48816
parent0f9579d9e0331b6255132ac06bdf2c0a01cceb90
fs/ntfs3: Fix attr_insert_range at end of file

If the offset is equal to or greater than the end of
file, an error is returned. For such operations (i.e., inserting
a hole at the end of file), ftruncate(2) should be used.

Signed-off-by: Konstantin Komarov <almaz.alexandrovich@paragon-software.com>
fs/ntfs3/attrib.c