]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libmount: use some MS_* flags as superblock flags
authorKarel Zak <kzak@redhat.com>
Thu, 20 Jul 2023 10:34:14 +0000 (12:34 +0200)
committerKarel Zak <kzak@redhat.com>
Thu, 20 Jul 2023 10:34:14 +0000 (12:34 +0200)
commit54e4a6b145fd6ef943d93e16de748283e687855d
treeb7fdac5c8cf7a08659d870c506ef271c466dceda
parent91ea8ff5cf43568cccba41da573bd9a462f17a84
libmount: use some MS_* flags as superblock flags

The old mount(2) API usually utilizes MS_* flags to set up the VFS
node. However, there are some exceptions like "sync" (MS_SYNCHRONOUS),
where the flag is used (by kernel) for the superblock instead. The new
API addresses this issue, ensuring that these options are used for
fsconfig().

This commit introduces MNT_SUPERBLOCK to identify these options in the
libmount options Linux map, and it enforces the new mount code to
utilize these options for fsconfig(FSCONFIG_SET_FLAG).

Reported-by: Abbink Esger <esger.abbink.ext@siemens.com>
Signed-off-by: Karel Zak <kzak@redhat.com>
libmount/src/hook_mount.c
libmount/src/libmount.h.in
libmount/src/optmap.c