Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libmount: use mount(2) for remount on Linux < 5.14
It seems mount_setattr() is supported on Linux < 5.14, but it's without MOUNT_ATTR_NOSYMFOLLOW. That's problem for remount where we reset all VFS flags. The most simple (but not elegant) is to check for kernel version and fallback to mount(2) on remount. Addresses: util-linux#2283 Signed-off-by: Karel Zak <kzak@redhat.com>
- Loading branch information