diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2022-01-31 09:45:12 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2022-06-24 16:03:15 -0300 |
commit | 6c0eedd97e49aae3b22abcdd892efb7c3f57b9f4 (patch) | |
tree | 416f9f564775065c37a32edfc90e523d11d73922 /sysdeps/unix/sysv/linux/sys | |
parent | 77536da3dea5af4d1859e4e754f07f47cf8d7d4c (diff) | |
download | glibc-6c0eedd97e49aae3b22abcdd892efb7c3f57b9f4.tar glibc-6c0eedd97e49aae3b22abcdd892efb7c3f57b9f4.tar.gz glibc-6c0eedd97e49aae3b22abcdd892efb7c3f57b9f4.tar.bz2 glibc-6c0eedd97e49aae3b22abcdd892efb7c3f57b9f4.zip |
linux: Add fsopen
It was added on Linux 5.2 (24dcb3d90a1f67fe08c68a004af37df059d74005)
to start the process of preparing to create a superblock that will
then be mountable, using an fd as a context handle.
Tested-by: Carlos O'Donell <carlos@redhat.com>
Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Diffstat (limited to 'sysdeps/unix/sysv/linux/sys')
-rw-r--r-- | sysdeps/unix/sysv/linux/sys/mount.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/sysdeps/unix/sysv/linux/sys/mount.h b/sysdeps/unix/sysv/linux/sys/mount.h index 174b5c7763..56da283d3f 100644 --- a/sysdeps/unix/sysv/linux/sys/mount.h +++ b/sysdeps/unix/sysv/linux/sys/mount.h @@ -134,6 +134,10 @@ enum }; +/* fsopen flags. */ +#define FSOPEN_CLOEXEC 0x00000001 + + __BEGIN_DECLS /* Mount a filesystem. */ @@ -147,6 +151,10 @@ extern int umount (const char *__special_file) __THROW; /* Unmount a filesystem. Force unmounting if FLAGS is set to MNT_FORCE. */ extern int umount2 (const char *__special_file, int __flags) __THROW; +/* Open the filesystem referenced by FS_NAME so it can be configured for + mouting. */ +extern int fsopen (const char *__fs_name, unsigned int __flags) __THROW; + __END_DECLS #endif /* _SYS_MOUNT_H */ |