From 6c0eedd97e49aae3b22abcdd892efb7c3f57b9f4 Mon Sep 17 00:00:00 2001 From: Adhemerval Zanella Date: Mon, 31 Jan 2022 09:45:12 -0300 Subject: 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 Reviewed-by: Carlos O'Donell --- sysdeps/unix/sysv/linux/sys/mount.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'sysdeps/unix/sysv/linux/sys') diff --git a/sysdeps/unix/sysv/linux/sys/mount.h b/sysdeps/unix/sysv/linux/sys/mount.h index 174b5c7..56da283 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 */ -- cgit v1.1