about summary refs log tree commit diff
path: root/sysdeps/unix/sysv/linux/tst-mount-consts.py
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2022-06-24 16:59:19 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2022-07-05 10:08:48 -0300
commitaf1aa36c617d72e80ff6b268bf927b6642d90823 (patch)
tree9da46e918d6c910ce7cada5547a571b38defd673 /sysdeps/unix/sysv/linux/tst-mount-consts.py
parentc3b02b6567e5709614eb24c85c3c0b69ae5c58a6 (diff)
downloadglibc-af1aa36c617d72e80ff6b268bf927b6642d90823.tar.gz
glibc-af1aa36c617d72e80ff6b268bf927b6642d90823.tar.xz
glibc-af1aa36c617d72e80ff6b268bf927b6642d90823.zip
linux: Add mount_setattr
It was added on Linux 5.12 (2a1867219c7b27f928e2545782b86daaf9ad50bd)
to allow change the properties of a mount or a mount tree using file
descriptors which the new mount api is based on.

Checked on x86_64-linux-gnu.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'sysdeps/unix/sysv/linux/tst-mount-consts.py')
-rwxr-xr-xsysdeps/unix/sysv/linux/tst-mount-consts.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/sysdeps/unix/sysv/linux/tst-mount-consts.py b/sysdeps/unix/sysv/linux/tst-mount-consts.py
index 82ab18d963..a62f803123 100755
--- a/sysdeps/unix/sysv/linux/tst-mount-consts.py
+++ b/sysdeps/unix/sysv/linux/tst-mount-consts.py
@@ -56,7 +56,9 @@ def main():
         check('FSMOUNT_.*'),
         # MOVE_MOUNT__MASK may vary depending of the kernel version.
         check('MOVE_MOUNT_.*', 'MOVE_MOUNT__MASK'),
-        check('OPEN_TREE_*'))
+        check('OPEN_TREE_*'),
+        # MOUNT_ATTR_SIZE_VER0 is used for mount_setattr.
+        check('MOUNT_ATTR_.*', 'MOUNT_ATTR_SIZE_VER0'))
     sys.exit(status)
 
 if __name__ == '__main__':