mirror of
https://github.com/libfuse/libfuse.git
synced 2026-07-07 14:47:41 +08:00
95cf8ff83b
Update "mtab" so that non-kernel mount options (e.g. "x-fubar=XXX") are recorded somewhere so that userspace utilities can pick that up. Note that this likely is not the venerable /etc/mtab, which has been a symlink to procfs for years. On a modern system, these non-kernel options end up /run/mount/utab. But that's not a detail that libfuse has to worry about directly; it's really just calling mount -f(ake) to make the changes it wants. Old hats may remember the use of mount -f to update /etc/mtab after mounting the root filesystem. Signed-off-by: "Darrick J. Wong" <djwong@kernel.org> Signed-off-by: Bernd Schubert <bernd@bsbernd.com>
32 lines
955 B
C
32 lines
955 B
C
/*
|
|
* FUSE: Filesystem in Userspace
|
|
* Copyright (C) 2001-2007 Miklos Szeredi <miklos@szeredi.hu>
|
|
* 2026 Bernd Schubert <bernd@bsbernd.com>
|
|
*
|
|
* This program can be distributed under the terms of the GNU LGPLv2.
|
|
* See the file LGPL2.txt
|
|
*/
|
|
|
|
#ifndef FUSE_MOUNT_COMMON_I_H_
|
|
#define FUSE_MOUNT_COMMON_I_H_
|
|
|
|
/* Forward declaration for fuse_args */
|
|
struct fuse_args;
|
|
struct mount_opts;
|
|
|
|
/* Special return value for mount functions to indicate fallback to fusermount3 is needed */
|
|
#define FUSE_MOUNT_FALLBACK_NEEDED (-2)
|
|
|
|
/* Mount options management functions */
|
|
struct mount_opts *parse_mount_opts(struct fuse_args *args);
|
|
void destroy_mount_opts(struct mount_opts *mo);
|
|
|
|
unsigned int get_max_read(const struct mount_opts *o);
|
|
char *fuse_mnt_kernel_opts(const struct mount_opts *mo);
|
|
char *fuse_mnt_mtab_opts(const struct mount_opts *mo);
|
|
unsigned int fuse_mnt_flags(const struct mount_opts *mo);
|
|
|
|
|
|
|
|
#endif /* FUSE_MOUNT_COMMON_I_H_ */
|