]> git.ipfire.org Git - thirdparty/systemd.git/commit
tree-wide: Handle EINVAL as not supported for chattr_xxx()
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 26 May 2025 14:11:06 +0000 (16:11 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 26 May 2025 19:59:08 +0000 (21:59 +0200)
commitf1ee656d4d2c52eaf956772c4b30c9ae637bbaff
treede32af41ca409c28456fdf3bce0cd754400a6ce1
parent8cf13c875240ae68f5717f987aa99915ad26b20f
tree-wide: Handle EINVAL as not supported for chattr_xxx()

F2FS returns EINVAL from FS_IOC_SETFLAGS when trying to set
FS_NOCOW_FL. Let's handle this by treating EINVAL as not supported.
While we're at it, make sure we use ERRNO_IS_IOCTL_NOT_SUPPORTED()
across the tree instead of ERRNO_IS_NOT_SUPPORTED() when calling any
of the chattr_xxx() functions.

Fixes #37593
src/basic/chattr-util.c
src/basic/fs-util.c
src/home/homework-luks.c
src/journal/journalctl-authenticate.c
src/repart/repart.c
src/shared/copy.c
src/shared/import-util.c
src/tmpfiles/tmpfiles.c