fs/ntfs3: Forbid FALLOC_FL_PUNCH_HOLE for normal files
authorKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
Tue, 28 Sep 2021 17:04:10 +0000 (20:04 +0300)
committerKonstantin Komarov <almaz.alexandrovich@paragon-software.com>
Tue, 5 Oct 2021 14:01:55 +0000 (17:01 +0300)
commit8241fffae7c8bab5cec5fc8bcaceccd03079e3aa
tree5379f6cf172138d2cba9bf568c6275879a39fd9d
parentcff32466bf851bf29cd491d8a3cbeb4dc4a36ab6
fs/ntfs3: Forbid FALLOC_FL_PUNCH_HOLE for normal files

FALLOC_FL_PUNCH_HOLE isn't allowed with normal files.
Filesystem must remember info about hole, but for normal file
we can only zero it and forget.

Fixes: 4342306f0f0d ("fs/ntfs3: Add file operations and implementation")
Now xfstests generic/016 generic/021 generic/022 pass.

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