about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2023-10-31 13:32:36 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2023-11-03 10:01:46 -0300
commit10b4c8b96fe0602ab5acb1d92bd5ce451803071b (patch)
treeda79f9331b8fc857c71eff43869fa13254950e78
parentcb8c78b2ffa0b77ae453b2d328d7e2fe5186ef2a (diff)
downloadglibc-10b4c8b96fe0602ab5acb1d92bd5ce451803071b.tar.gz
glibc-10b4c8b96fe0602ab5acb1d92bd5ce451803071b.tar.xz
glibc-10b4c8b96fe0602ab5acb1d92bd5ce451803071b.zip
linux: Add FSCONFIG_CMD_CREATE_EXCL from Linux 6.6 to sys/mount.h
The tst-mount-consts.py does not need to be updated because kernel
exports it as an enum (compare_macro_consts can not parse it).
-rw-r--r--sysdeps/unix/sysv/linux/sys/mount.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/sys/mount.h b/sysdeps/unix/sysv/linux/sys/mount.h
index a692c0e092..db0ac7a8a4 100644
--- a/sysdeps/unix/sysv/linux/sys/mount.h
+++ b/sysdeps/unix/sysv/linux/sys/mount.h
@@ -256,6 +256,8 @@ enum fsconfig_command
 # define FSCONFIG_CMD_CREATE FSCONFIG_CMD_CREATE
   FSCONFIG_CMD_RECONFIGURE = 7,   /* Invoke superblock reconfiguration */
 # define FSCONFIG_CMD_RECONFIGURE FSCONFIG_CMD_RECONFIGURE
+  FSCONFIG_CMD_CREATE_EXCL = 8,    /* Create new superblock, fail if reusing existing superblock */
+# define FSCONFIG_CMD_CREATE_EXCL FSCONFIG_CMD_CREATE_EXCL
 };
 #endif