/freebsd/sys/fs/tmpfs/ |
H A D | tmpfs_vfsops.c | 341 if (vfs_filteropt(mp->mnt_optnew, tmpfs_opts)) in tmpfs_mount() 346 if (vfs_filteropt(mp->mnt_optnew, tmpfs_updateopts) != 0) in tmpfs_mount() 349 if (vfs_getopt_size(mp->mnt_optnew, "size", &size_max) == 0) { in tmpfs_mount() 363 if (vfs_flagopt(mp->mnt_optnew, "ro", NULL, 0) && in tmpfs_mount() 367 } else if (!vfs_flagopt(mp->mnt_optnew, "ro", NULL, 0) && in tmpfs_mount() 375 tmp->tm_nomtime = vfs_getopt(mp->mnt_optnew, "nomtime", NULL, in tmpfs_mount() 394 vfs_scanopt(mp->mnt_optnew, "gid", "%d", &root_gid) != 1) in tmpfs_mount() 397 vfs_scanopt(mp->mnt_optnew, "uid", "%d", &root_uid) != 1) in tmpfs_mount() 402 if (vfs_getopt_size(mp->mnt_optnew, "inodes", &nodes_max) != 0) in tmpfs_mount() 404 if (vfs_getopt_size(mp->mnt_optnew, "size", &size_max) != 0) in tmpfs_mount() [all …]
|
/freebsd/sys/fs/nfsclient/ |
H A D | nfs_clvfsops.c | 614 if (vfs_getopt(mp->mnt_optnew, "ro", NULL, NULL) == 0) { in nfs_decode_args() 944 if (vfs_filteropt(mp->mnt_optnew, nfs_opts)) { in nfs_mount() 965 error = vfs_copyopt(mp->mnt_optnew, "nfs_args", &args, in nfs_mount() 1006 if (vfs_getopt(mp->mnt_optnew, "udp", NULL, NULL) == 0) in nfs_mount() 1008 if (vfs_getopt(mp->mnt_optnew, "tcp", NULL, NULL) == 0) in nfs_mount() 1026 if (vfs_getopt(mp->mnt_optnew, "tls", NULL, NULL) == 0) in nfs_mount() 1244 if (vfs_getopt(mp->mnt_optnew, "sec", in nfs_mount() 1328 } else if (nfs_mount_parse_from(mp->mnt_optnew, in nfs_mount() 1353 (void) vfs_getopt(mp->mnt_optnew, "hostname", in nfs_mount() 1386 if (vfs_getopt(mp->mnt_optnew, in nfs_mount() [all …]
|
/freebsd/sys/fs/cd9660/ |
H A D | cd9660_vfsops.c | 149 fspec = vfs_getopts(mp->mnt_optnew, "from", &error); in cd9660_mount() 156 if (vfs_flagopt(mp->mnt_optnew, "export", NULL, 0)) in cd9660_mount() 258 if (1 != vfs_scanopt(mp->mnt_optnew, "ssector", "%d", &ssector)) in iso_mountfs() 293 if (!vfs_flagopt(mp->mnt_optnew, "nojoliet", NULL, 0)) { in iso_mountfs() 302 !vfs_flagopt(mp->mnt_optnew, "brokenjoliet", NULL, 0)) in iso_mountfs() 405 if (vfs_scanopt(mp->mnt_optnew, "uid", "%d", &v) == 1) { in iso_mountfs() 409 if (vfs_scanopt(mp->mnt_optnew, "gid", "%d", &v) == 1) { in iso_mountfs() 413 if (vfs_scanopt(mp->mnt_optnew, "mask", "%d", &v) == 1) { in iso_mountfs() 416 if (vfs_scanopt(mp->mnt_optnew, "dirmask", "%d", &v) == 1) { in iso_mountfs() 447 cs_local = vfs_getopts(mp->mnt_optnew, "cs_local", &error); in iso_mountfs() [all …]
|
/freebsd/sys/contrib/openzfs/module/os/freebsd/spl/ |
H A D | spl_vfs.c | 109 struct vfsoptlist *opts = vfsp->mnt_optnew; in vfs_optionisset() 170 mp->mnt_optnew = NULL; in mount_snapshot() 172 mp->mnt_optnew = mp->mnt_opt; in mount_snapshot() 209 vfs_freeopts(mp->mnt_optnew); in mount_snapshot() 217 mp->mnt_opt = mp->mnt_optnew; in mount_snapshot() 231 mp->mnt_optnew = NULL; in mount_snapshot()
|
/freebsd/sys/fs/autofs/ |
H A D | autofs_vfsops.c | 62 if (vfs_filteropt(mp->mnt_optnew, autofs_opts)) in autofs_mount() 70 if (vfs_getopt(mp->mnt_optnew, "from", (void **)&from, NULL)) in autofs_mount() 73 if (vfs_getopt(mp->mnt_optnew, "fspath", (void **)&fspath, NULL)) in autofs_mount() 76 if (vfs_getopt(mp->mnt_optnew, "master_options", (void **)&options, NULL)) in autofs_mount() 79 if (vfs_getopt(mp->mnt_optnew, "master_prefix", (void **)&prefix, NULL)) in autofs_mount()
|
/freebsd/sys/fs/smbfs/ |
H A D | smbfs_vfsops.c | 147 if (vfs_filteropt(mp->mnt_optnew, smbfs_opts)) { in smbfs_mount() 156 if (1 != vfs_scanopt(mp->mnt_optnew, "fd", "%d", &v)) { in smbfs_mount() 177 if (1 != vfs_scanopt(mp->mnt_optnew, in smbfs_mount() 183 if (1 != vfs_scanopt(mp->mnt_optnew, "uid", "%d", &v)) { in smbfs_mount() 190 if (1 != vfs_scanopt(mp->mnt_optnew, "gid", "%d", &v)) { in smbfs_mount() 197 if (1 != vfs_scanopt(mp->mnt_optnew, "file_mode", "%d", &v)) { in smbfs_mount() 204 if (1 != vfs_scanopt(mp->mnt_optnew, "dir_mode", "%d", &v)) { in smbfs_mount() 211 vfs_flagopt(mp->mnt_optnew, in smbfs_mount()
|
/freebsd/sys/fs/devfs/ |
H A D | devfs_vfsops.c | 85 if (mp->mnt_optnew != NULL) { in devfs_mount() 86 if (vfs_filteropt(mp->mnt_optnew, devfs_opts)) in devfs_mount() 89 if (vfs_flagopt(mp->mnt_optnew, "export", NULL, 0)) in devfs_mount() 92 if (vfs_getopt(mp->mnt_optnew, "ruleset", NULL, NULL) == 0 && in devfs_mount() 93 (vfs_scanopt(mp->mnt_optnew, "ruleset", "%d", in devfs_mount()
|
/freebsd/sys/fs/msdosfs/ |
H A D | msdosfs_vfsops.c | 137 error = vfs_getopt(mp->mnt_optnew, in update_mp() 140 error = vfs_getopt(mp->mnt_optnew, in update_mp() 143 error = vfs_getopt(mp->mnt_optnew, in update_mp() 169 vfs_flagopt(mp->mnt_optnew, "shortname", in update_mp() 171 vfs_flagopt(mp->mnt_optnew, "shortnames", in update_mp() 173 vfs_flagopt(mp->mnt_optnew, "longname", in update_mp() 175 vfs_flagopt(mp->mnt_optnew, "longnames", in update_mp() 177 vfs_flagopt(mp->mnt_optnew, "kiconv", in update_mp() 243 if (vfs_filteropt(mp->mnt_optnew, msdosfs_opts)) in msdosfs_mount() 253 vfs_flagopt(mp->mnt_optnew, "ro", NULL, 0)) { in msdosfs_mount() [all …]
|
/freebsd/sys/fs/unionfs/ |
H A D | union_vfsops.c | 120 error = vfs_getopt(mp->mnt_optnew, "target", (void **)&target, &len); in unionfs_domount() 122 error = vfs_getopt(mp->mnt_optnew, "from", (void **)&target, in unionfs_domount() 128 if (vfs_getopt(mp->mnt_optnew, "below", NULL, NULL) == 0) in unionfs_domount() 130 if (vfs_getopt(mp->mnt_optnew, "udir", (void **)&tmp, NULL) == 0) { in unionfs_domount() 139 if (vfs_getopt(mp->mnt_optnew, "ufile", (void **)&tmp, NULL) == 0) { in unionfs_domount() 169 if (vfs_getopt(mp->mnt_optnew, "uid", (void **)&tmp, in unionfs_domount() 178 if (vfs_getopt(mp->mnt_optnew, "gid", (void **)&tmp, in unionfs_domount() 187 if (vfs_getopt(mp->mnt_optnew, "copymode", (void **)&tmp, in unionfs_domount() 203 if (vfs_getopt(mp->mnt_optnew, "whiteout", (void **)&tmp, in unionfs_domount()
|
/freebsd/sys/fs/fdescfs/ |
H A D | fdesc_vfsops.c | 97 if (vfs_getopt(mp->mnt_optnew, "linrdlnk", NULL, NULL) == 0) in fdesc_mount() 99 if (vfs_getopt(mp->mnt_optnew, "rdlnk", NULL, NULL) == 0) in fdesc_mount() 101 if (vfs_getopt(mp->mnt_optnew, "nodup", NULL, NULL) == 0) in fdesc_mount()
|
/freebsd/sys/fs/nullfs/ |
H A D | null_vfsops.c | 101 if (vfs_flagopt(mp->mnt_optnew, "export", NULL, 0)) in nullfs_mount() 110 error = vfs_getopt(mp->mnt_optnew, "from", (void **)&target, &len); in nullfs_mount() 112 error = vfs_getopt(mp->mnt_optnew, "target", (void **)&target, &len); in nullfs_mount() 208 if (vfs_getopt(mp->mnt_optnew, "cache", NULL, NULL) == 0) { in nullfs_mount() 210 } else if (vfs_getopt(mp->mnt_optnew, "nocache", NULL, NULL) == 0) { in nullfs_mount()
|
/freebsd/sys/fs/tarfs/ |
H A D | tarfs_vfsops.c | 951 if (vfs_filteropt(mp->mnt_optnew, tarfs_opts)) in tarfs_mount() 961 vfs_scanopt(mp->mnt_optnew, "gid", "%d", &root_gid) != 1) in tarfs_mount() 964 vfs_scanopt(mp->mnt_optnew, "uid", "%d", &root_uid) != 1) in tarfs_mount() 967 vfs_scanopt(mp->mnt_optnew, "mode", "%ho", &root_mode) != 1) in tarfs_mount() 970 error = vfs_getopt(mp->mnt_optnew, "from", (void **)&from, &len); in tarfs_mount() 973 error = vfs_getopt(mp->mnt_optnew, "as", (void **)&as, &aslen); in tarfs_mount() 982 if (vfs_flagopt(mp->mnt_optnew, "verify", NULL, 0)) { in tarfs_mount()
|
/freebsd/sys/kern/ |
H A D | vfs_mount.c | 1179 mp->mnt_optnew = *optlist; in vfs_domount_first() 1239 mp->mnt_opt = mp->mnt_optnew; in vfs_domount_first() 1245 mp->mnt_optnew = NULL; in vfs_domount_first() 1426 mp->mnt_optnew = *optlist; in vfs_domount_update() 1427 vfs_mergeopts(mp->mnt_optnew, mp->mnt_opt); in vfs_domount_update() 1545 mp->mnt_opt = mp->mnt_optnew; in vfs_domount_update() 1552 mp->mnt_optnew = NULL; in vfs_domount_update() 3061 mp->mnt_optnew = opts; in vfs_remount_ro() 3072 mp->mnt_opt = mp->mnt_optnew; in vfs_remount_ro() 3077 vfs_freeopts(mp->mnt_optnew); in vfs_remount_ro() [all …]
|
H A D | vfs_export.c | 430 vfs_deleteopt(mp->mnt_optnew, "export"); in vfs_export()
|
/freebsd/sys/ufs/ffs/ |
H A D | ffs_vfsops.c | 358 if (vfs_filteropt(mp->mnt_optnew, ffs_opts)) in ffs_mount() 373 vfs_deleteopt(mp->mnt_optnew, "groupquota"); in ffs_mount() 374 vfs_deleteopt(mp->mnt_optnew, "userquota"); in ffs_mount() 376 fspec = vfs_getopts(mp->mnt_optnew, "from", &error); in ffs_mount() 381 if (vfs_getopt(mp->mnt_optnew, "untrusted", NULL, NULL) == 0) in ffs_mount() 384 if (vfs_getopt(mp->mnt_optnew, "acls", NULL, NULL) == 0) in ffs_mount() 387 if (vfs_getopt(mp->mnt_optnew, "snapshot", NULL, NULL) == 0) { in ffs_mount() 393 vfs_deleteopt(mp->mnt_optnew, "snapshot"); in ffs_mount() 397 if (vfs_getopt(mp->mnt_optnew, "nfsv4acls", NULL, NULL) == 0) { in ffs_mount() 499 vfs_flagopt(mp->mnt_optnew, "ro", NULL, 0)) { in ffs_mount() [all …]
|
/freebsd/sys/fs/fuse/ |
H A D | fuse_vfsops.c | 321 opts = mp->mnt_optnew; in fuse_vfsop_mount()
|
/freebsd/sys/fs/ext2fs/ |
H A D | ext2_vfsops.c | 134 opts = mp->mnt_optnew; in ext2_mount() 852 ronly = vfs_flagopt(mp->mnt_optnew, "ro", NULL, 0); in ext2_mountfs()
|
/freebsd/sys/fs/udf/ |
H A D | udf_vfsops.c | 189 opts = mp->mnt_optnew; in udf_mount()
|
/freebsd/sys/sys/ |
H A D | mount.h | 245 struct vfsoptlist *mnt_optnew; /* new options passed to fs */ member
|
/freebsd/sys/contrib/openzfs/module/os/freebsd/zfs/ |
H A D | zfs_vfsops.c | 1319 if (vfs_getopt(vfsp->mnt_optnew, "from", (void **)&osname, NULL)) in zfs_mount()
|
/freebsd/sys/fs/nfsserver/ |
H A D | nfs_nfsdport.c | 3581 NFSD_VNET(nfsv4root_mnt)->mnt_optnew = &NFSD_VNET(nfsv4root_newopt); in nfsd_mntinit()
|