]> git.ipfire.org Git - thirdparty/systemd.git/commit
mount-util: fold what we need from get_mount_flags() bind_remount_one_with_mountinfo()
authorLennart Poettering <lennart@poettering.net>
Wed, 24 Mar 2021 13:16:45 +0000 (14:16 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 7 May 2021 09:58:41 +0000 (11:58 +0200)
commitc2e7941d914968d15bfc2ced889f9e76ae875f2a
tree39509e4f0e5e1d65ad53a957d0912159bf5609e5
parentbad107f1518452c725f0142bb223f77acf1a62b5
mount-util: fold what we need from get_mount_flags() bind_remount_one_with_mountinfo()

And get rid of get_mount_flags() altogether.

(This drops the statvfs() fallback that get_mount_flags() did. That
fallback was incomplete however, and mostly hid errors. Our primary
avenue to get mount flags is /proc/self/mountinfo and we should trust
it, and fix bugs we might encounter with it, but not tape over it.
Dropping the fallback is relevant in particular as it actually returned
mount flags for any path, not just mount points, which was very icky.)

(cherry picked from commit 2c5ff8ea76d8c3c9944567ae97f498925dfcd443)
src/shared/mount-util.c