journal-file: explicitly handle file systems that do not support hole punching
authorLennart Poettering <lennart@poettering.net>
Wed, 2 Feb 2022 09:42:37 +0000 (10:42 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 4 Feb 2022 15:37:39 +0000 (16:37 +0100)
commitd94e8a50643c726503df9e37822b7c6877b25c86
treebad90bac8ccebb939741a82a28047bf8aff5c7e0
parent47497593fad3c5f0209c07c084af95c6cae95e0d
journal-file: explicitly handle file systems that do not support hole punching

Apparently the error code fallocate() returns if hole punching is not
supported is not too well defined (man page just says "an error is
returned"), hence let's accept the usual set of errors, and the
normalize it to EOPNOTSUPP, and generate a clear error message in this
case.
src/journal/managed-journal-file.c