|
@ -61,6 +61,7 @@ enum { |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
struct mount_opts { |
|
|
struct mount_opts { |
|
|
|
|
|
int allow_other; |
|
|
int ishelp; |
|
|
int ishelp; |
|
|
int flags; |
|
|
int flags; |
|
|
int auto_unmount; |
|
|
int auto_unmount; |
|
@ -76,10 +77,12 @@ struct mount_opts { |
|
|
#define FUSE_MOUNT_OPT(t, p) { t, offsetof(struct mount_opts, p), 1 } |
|
|
#define FUSE_MOUNT_OPT(t, p) { t, offsetof(struct mount_opts, p), 1 } |
|
|
|
|
|
|
|
|
static const struct fuse_opt fuse_mount_opts[] = { |
|
|
static const struct fuse_opt fuse_mount_opts[] = { |
|
|
|
|
|
FUSE_MOUNT_OPT("allow_other", allow_other), |
|
|
FUSE_MOUNT_OPT("blkdev", blkdev), |
|
|
FUSE_MOUNT_OPT("blkdev", blkdev), |
|
|
FUSE_MOUNT_OPT("auto_unmount", auto_unmount), |
|
|
FUSE_MOUNT_OPT("auto_unmount", auto_unmount), |
|
|
FUSE_MOUNT_OPT("fsname=%s", fsname), |
|
|
FUSE_MOUNT_OPT("fsname=%s", fsname), |
|
|
FUSE_MOUNT_OPT("subtype=%s", subtype), |
|
|
FUSE_MOUNT_OPT("subtype=%s", subtype), |
|
|
|
|
|
FUSE_OPT_KEY("allow_other", KEY_KERN_OPT), |
|
|
FUSE_OPT_KEY("auto_unmount", KEY_FUSERMOUNT_OPT), |
|
|
FUSE_OPT_KEY("auto_unmount", KEY_FUSERMOUNT_OPT), |
|
|
FUSE_OPT_KEY("blkdev", KEY_FUSERMOUNT_OPT), |
|
|
FUSE_OPT_KEY("blkdev", KEY_FUSERMOUNT_OPT), |
|
|
FUSE_OPT_KEY("fsname=", KEY_FUSERMOUNT_OPT), |
|
|
FUSE_OPT_KEY("fsname=", KEY_FUSERMOUNT_OPT), |
|
@ -549,8 +552,6 @@ int fuse_kern_mount(const char *mountpoint, struct fuse_args *args) |
|
|
fuse_opt_parse(args, &mo, fuse_mount_opts, fuse_mount_opt_proc) == -1) |
|
|
fuse_opt_parse(args, &mo, fuse_mount_opts, fuse_mount_opt_proc) == -1) |
|
|
return -1; |
|
|
return -1; |
|
|
|
|
|
|
|
|
fuse_opt_add_opt(&mo.kernel_opts,"allow_other"); |
|
|
|
|
|
|
|
|
|
|
|
res = 0; |
|
|
res = 0; |
|
|
if (mo.ishelp) |
|
|
if (mo.ishelp) |
|
|
goto out; |
|
|
goto out; |
|
|