| /netbsd-src/sbin/mount_union/ |
| H A D | mount_union.c | 87 int ch, mntflags; in mount_union() local 92 mntflags = 0; in mount_union() 93 args.mntflags = UNMNT_ABOVE; in mount_union() 97 args.mntflags &= ~UNMNT_OPMASK; in mount_union() 98 args.mntflags |= UNMNT_BELOW; in mount_union() 101 mp = getmntopts(optarg, mopts, &mntflags, 0); in mount_union() 126 if (mount(MOUNT_UNION, canon_dir, mntflags, &args, sizeof args) == -1) in mount_union() 128 if (mntflags & MNT_GETARGS) { in mount_union() 130 (void)snprintb(buf, sizeof(buf), UNMNT_BITS, args.mntflags); in mount_union()
|
| /netbsd-src/sbin/mount_lfs/ |
| H A D | mount_lfs.c | 98 struct ulfs_args *args, int *mntflags, in mount_lfs_parseargs() argument 106 *mntflags = noclean = 0; in mount_lfs_parseargs() 126 mp = getmntopts(optarg, mopts, mntflags, 0); in mount_lfs_parseargs() 154 int mntflags; in mount_lfs() local 160 mount_lfs_parseargs(argc, argv, &args, &mntflags, canon_dev, fs_name); in mount_lfs() 168 if (mntflags & MNT_UPDATE) { in mount_lfs() 179 if (mount(MOUNT_LFS, fs_name, mntflags, &args, sizeof args) == -1) { in mount_lfs() 185 if (mntflags & MNT_UPDATE) in mount_lfs() 200 if (!(oldflags & MNT_RDONLY) || (mntflags & MNT_RDONLY) in mount_lfs() 201 || (mntflags & MNT_GETARGS)) in mount_lfs() [all …]
|
| /netbsd-src/sbin/mount_v7fs/ |
| H A D | mount_v7fs.c | 105 int mntflags; in mount_v7fs() local 107 mount_v7fs_parseargs(argc, argv, &args, &mntflags, in mount_v7fs() 110 if (mount(MOUNT_V7FS, canon_dir, mntflags, &args, sizeof args) == -1) { in mount_v7fs() 116 if (mntflags & MNT_UPDATE) in mount_v7fs() 130 if (mntflags & MNT_GETARGS) { in mount_v7fs() 139 int *mntflags, char *canon_dev, char *canon_dir) in mount_v7fs_parseargs() argument 144 *mntflags = 0; in mount_v7fs_parseargs() 149 mp = getmntopts(optarg, mopts, mntflags, 0); in mount_v7fs_parseargs()
|
| /netbsd-src/sbin/mount_kernfs/ |
| H A D | mount_kernfs.c | 116 mount_kernfs_parseargs(int argc, char *argv[], void *dummy, int *mntflags, in mount_kernfs_parseargs() argument 122 *mntflags = 0; in mount_kernfs_parseargs() 126 mp = getmntopts(optarg, mopts, mntflags, 0); in mount_kernfs_parseargs() 142 if (*mntflags & MNT_GETARGS) in mount_kernfs_parseargs() 153 int mntflags; in mount_kernfs() local 155 mount_kernfs_parseargs(argc, argv, NULL, &mntflags, in mount_kernfs() 157 if (mount(MOUNT_KERNFS, canon_dir, mntflags, NULL, 0) == -1) in mount_kernfs()
|
| /netbsd-src/sbin/mount_fdesc/ |
| H A D | mount_fdesc.c | 116 mount_fdesc_parseargs(int argc, char *argv[], void *dummy, int *mntflags, in mount_fdesc_parseargs() argument 122 *mntflags = 0; in mount_fdesc_parseargs() 126 mp = getmntopts(optarg, mopts, mntflags, 0); in mount_fdesc_parseargs() 142 if (*mntflags & MNT_GETARGS) in mount_fdesc_parseargs() 152 int mntflags; in mount_fdesc() local 155 mount_fdesc_parseargs(argc, argv, NULL, &mntflags, in mount_fdesc() 157 if (mount(MOUNT_FDESC, canon_dir, mntflags, NULL, 0) == -1) in mount_fdesc()
|
| /netbsd-src/sbin/mount_cd9660/ |
| H A D | mount_cd9660.c | 99 struct iso_args *args, int *mntflags, in mount_cd9660_parseargs() argument 108 *mntflags = opts = set_gid = set_uid = set_mask = set_dirmask = 0; in mount_cd9660_parseargs() 141 mp = getmntopts(optarg, mopts, mntflags, &opts); in mount_cd9660_parseargs() 185 if ((*mntflags & MNT_GETARGS) == 0) in mount_cd9660_parseargs() 186 *mntflags |= MNT_RDONLY; in mount_cd9660_parseargs() 210 int mntflags; in mount_cd9660() local 212 mount_cd9660_parseargs(argc, argv, &args, &mntflags, in mount_cd9660() 215 if (mount(MOUNT_CD9660, canon_dir, mntflags, &args, sizeof args) == -1) in mount_cd9660() 217 if (mntflags & MNT_GETARGS) { in mount_cd9660()
|
| /netbsd-src/sbin/mount_sysvbfs/ |
| H A D | mount_sysvbfs.c | 85 struct sysvbfs_args *args, int *mntflags, in mount_sysvbfs_parseargs() argument 91 *mntflags = 0; in mount_sysvbfs_parseargs() 96 mp = getmntopts(optarg, mopts, mntflags, 0); in mount_sysvbfs_parseargs() 122 int mntflags; in mount_sysvbfs() local 124 mount_sysvbfs_parseargs(argc, argv, &args, &mntflags, in mount_sysvbfs() 127 if (mount(MOUNT_SYSVBFS, canon_dir, mntflags, &args, sizeof args)==-1) { in mount_sysvbfs() 133 if (mntflags & MNT_UPDATE) in mount_sysvbfs()
|
| /netbsd-src/sbin/mount_ext2fs/ |
| H A D | mount_ext2fs.c | 91 struct ufs_args *args, int *mntflags, in mount_ext2fs_parseargs() argument 98 *mntflags = 0; in mount_ext2fs_parseargs() 103 mp = getmntopts(optarg, mopts, mntflags, 0); in mount_ext2fs_parseargs() 130 int mntflags; in mount_ext2fs() local 132 mount_ext2fs_parseargs(argc, argv, &args, &mntflags, in mount_ext2fs() 135 if (mount(MOUNT_EXT2FS, fs_name, mntflags, &args, sizeof args) == -1) { in mount_ext2fs() 141 if (mntflags & MNT_UPDATE) in mount_ext2fs()
|
| /netbsd-src/sbin/mount_autofs/ |
| H A D | mount_autofs.c | 70 mount_autofs_parseargs(int argc, char *argv[], void *v, int *mntflags, in mount_autofs_parseargs() argument 77 *mntflags = 0; in mount_autofs_parseargs() 84 mp = getmntopts(optarg, mopts, mntflags, 0); in mount_autofs_parseargs() 115 int mntflags; in mount_autofs() local 122 mount_autofs_parseargs(argc, argv, &am, &mntflags, in mount_autofs() 124 if (mount(MOUNT_KERNFS, canon_dir, mntflags, &am, sizeof(am)) == -1) in mount_autofs() 126 if (mntflags & MNT_GETARGS) { in mount_autofs()
|
| /netbsd-src/sbin/mount_ffs/ |
| H A D | mount_ffs.c | 96 struct ufs_args *args, int *mntflags, in mount_ffs_parseargs() argument 103 *mntflags = 0; in mount_ffs_parseargs() 108 mp = getmntopts(optarg, mopts, mntflags, 0); in mount_ffs_parseargs() 135 int mntflags; in mount_ffs() local 137 mount_ffs_parseargs(argc, argv, &args, &mntflags, canon_dev, fs_name); in mount_ffs() 139 if (mount(MOUNT_FFS, fs_name, mntflags, &args, sizeof args) == -1) { in mount_ffs() 145 if (mntflags & MNT_UPDATE) in mount_ffs()
|
| /netbsd-src/tests/fs/union/ |
| H A D | t_pr.c | 44 unionargs.mntflags = UNMNT_BELOW; in ATF_TC_BODY() 51 unionargs.mntflags = UNMNT_BELOW; in ATF_TC_BODY() 80 unionargs.mntflags = UNMNT_ABOVE; in ATF_TC_BODY() 89 unionargs.mntflags = UNMNT_ABOVE; in ATF_TC_BODY() 116 unionargs.mntflags = UNMNT_ABOVE; in ATF_TC_BODY() 148 unionargs.mntflags = UNMNT_ABOVE; in ATF_TC_BODY() 155 unionargs.mntflags = UNMNT_ABOVE; in ATF_TC_BODY() 183 unionargs.mntflags = UNMNT_BELOW; in ATF_TC_BODY() 217 unionargs.mntflags = UNMNT_BELOW; in ATF_TC_BODY()
|
| /netbsd-src/sbin/mount_nilfs/ |
| H A D | mount_nilfs.c | 101 struct nilfs_args *args, int *mntflags, in mount_nilfs_parseargs() argument 112 set_gmtoff = *mntflags = 0; in mount_nilfs_parseargs() 118 mp = getmntopts(optarg, mopts, mntflags, 0); in mount_nilfs_parseargs() 159 int mntflags; in mount_nilfs() local 161 mount_nilfs_parseargs(argc, argv, &args, &mntflags, canon_dev, canon_dir); in mount_nilfs() 164 if (mount(MOUNT_NILFS, canon_dir, mntflags, &args, sizeof args) == -1) in mount_nilfs() 167 if (mntflags & MNT_GETARGS) { in mount_nilfs()
|
| /netbsd-src/sbin/mount_ados/ |
| H A D | mount_ados.c | 84 int c, mntflags, set_gid, set_uid, set_mask; in mount_ados() local 87 mntflags = set_gid = set_uid = set_mask = 0; in mount_ados() 105 mp = getmntopts(optarg, mopts, &mntflags, 0); in mount_ados() 142 if (mount(MOUNT_ADOSFS, dir, mntflags, &args, sizeof args) == -1) in mount_ados() 146 if (mntflags & MNT_GETARGS) { in mount_ados() 153 mntflags |= MNT_RDONLY; in mount_ados() 154 if (mount(MOUNT_ADOSFS, dir, mntflags, &args, sizeof args) == -1) in mount_ados()
|
| /netbsd-src/usr.sbin/puffs/rump_syspuffs/ |
| H A D | rump_syspuffs.c | 56 int mntflags, rv; in main() local 67 mount_syspuffs_parseargs(argc, argv, &args, &mntflags, in main() 70 rv = p2k_run_fs(MOUNT_PUFFS, canon_dev, canon_dir, mntflags, in main() 88 struct syspuffs_args *args, int *mntflags, in mount_syspuffs_parseargs() argument 140 if (read(sv[1], mntflags, sizeof(*mntflags)) != sizeof(*mntflags)) in mount_syspuffs_parseargs()
|
| /netbsd-src/sbin/mount_efs/ |
| H A D | mount_efs.c | 56 struct efs_args *args, int *mntflags, in mount_efs_parseargs() argument 63 *mntflags = 0; in mount_efs_parseargs() 68 mp = getmntopts(optarg, mopts, mntflags, NULL); in mount_efs_parseargs() 96 int mntflags; in mount_efs() 98 mount_efs_parseargs(argc, argv, &args, &mntflags, special, node); in mount_efs() local 100 if (mount(MOUNT_EFS, node, mntflags, &args, sizeof args) == -1) in mount_efs()
|
| /netbsd-src/sbin/mount_hfs/ |
| H A D | mount_hfs.c | 105 struct hfs_args *args, int *mntflags, in mount_hfs_parseargs() argument 112 *mntflags = 0; in mount_hfs_parseargs() 117 optparse = getmntopts(optarg, mopts, mntflags, 0); in mount_hfs_parseargs() 142 int mntflags; in mount_hfs() local 144 mount_hfs_parseargs(argc, argv, &args, &mntflags, canon_dev, canon_dir); in mount_hfs() 146 if (mount(MOUNT_HFS, canon_dir, mntflags, &args, sizeof args) == -1) in mount_hfs()
|
| /netbsd-src/sbin/mount_ntfs/ |
| H A D | mount_ntfs.c | 80 struct ntfs_args *args, int *mntflags, in mount_ntfs_parseargs() argument 88 *mntflags = set_gid = set_uid = set_mask = 0; in mount_ntfs_parseargs() 112 mp = getmntopts(optarg, mopts, mntflags, 0); in mount_ntfs_parseargs() 151 int mntflags; in mount_ntfs() local 154 mount_ntfs_parseargs(argc, argv, &args, &mntflags, in mount_ntfs() 157 if (mount(MOUNT_NTFS, canon_dir, mntflags, &args, sizeof args) == -1) in mount_ntfs() 160 if (mntflags & MNT_GETARGS) { in mount_ntfs()
|
| /netbsd-src/sbin/mount_chfs/ |
| H A D | mount_chfs.c | 70 int *mntflags, char *canon_dev, char *canon_dir) in mount_chfs_parseargs() argument 78 *mntflags = 0; in mount_chfs_parseargs() 85 mp = getmntopts(optarg, mopts, mntflags, 0); in mount_chfs_parseargs() 130 int mntflags; in mount_chfs() local 132 mount_chfs_parseargs(argc, argv, &args, &mntflags, in mount_chfs() 135 if (mount(MOUNT_CHFS, fs_name, mntflags, &args, sizeof args) == -1) { in mount_chfs()
|
| /netbsd-src/sbin/mount_udf/ |
| H A D | mount_udf.c | 101 struct udf_args *args, int *mntflags, in mount_udf_parseargs() argument 115 set_gmtoff = *mntflags = 0; in mount_udf_parseargs() 141 mp = getmntopts(optarg, mopts, mntflags, 0); in mount_udf_parseargs() 187 int mntflags; in mount_udf() local 189 mount_udf_parseargs(argc, argv, &args, &mntflags, canon_dev, canon_dir); in mount_udf() 192 if (mount(MOUNT_UDF, canon_dir, mntflags, &args, sizeof args) == -1) in mount_udf() 195 if (mntflags & MNT_GETARGS) { in mount_udf()
|
| /netbsd-src/sbin/mount_filecore/ |
| H A D | mount_filecore.c | 121 int ch, mntflags, opts, useuid; in mount_filecore() local 125 mntflags = opts = 0; in mount_filecore() 153 mp = getmntopts(optarg, mopts, &mntflags, 0); in mount_filecore() 178 mntflags |= MNT_RDONLY; in mount_filecore() 183 if (mount(MOUNT_FILECORE, dir, mntflags, &args, sizeof args) == -1) in mount_filecore() 185 if (mntflags & MNT_GETARGS) { in mount_filecore()
|
| /netbsd-src/sbin/mount_msdos/ |
| H A D | mount_msdos.c | 84 struct msdosfs_args *args, int *mntflags, in mount_msdos_parseargs() argument 94 *mntflags = set_gid = set_uid = set_mask = set_dirmask = set_gmtoff = 0; in mount_msdos_parseargs() 131 mp = getmntopts(optarg, mopts, mntflags, 0); in mount_msdos_parseargs() 195 int mntflags; in mount_msdos() local 197 mount_msdos_parseargs(argc, argv, &args, &mntflags, in mount_msdos() 200 if (mount(MOUNT_MSDOS, canon_dir, mntflags, &args, sizeof args) == -1) in mount_msdos() 203 if (mntflags & MNT_GETARGS) { in mount_msdos()
|
| /netbsd-src/usr.sbin/puffs/rump_lfs/ |
| H A D | rump_lfs.c | 73 int mntflags; in main() local 87 mount_lfs_parseargs(argc, argv, &args, &mntflags, canon_dev, canon_dir); in main() 112 ukfs_mount(MOUNT_LFS, canon_dev, canon_dir, mntflags, in main() 117 mntflags, &args, sizeof(args)) == -1) in main() 122 if ((mntflags & MNT_RDONLY) == 0) { in main()
|
| /netbsd-src/sbin/mount_procfs/ |
| H A D | mount_procfs.c | 121 int ch, mntflags, altflags; in mount_procfs() local 126 mntflags = 0; in mount_procfs() 131 mp = getmntopts(optarg, mopts, &mntflags, &altflags); in mount_procfs() 151 if (mount(MOUNT_PROCFS, canon_dir, mntflags, &args, sizeof args) == -1) in mount_procfs() 153 if (mntflags & MNT_GETARGS) { in mount_procfs()
|
| /netbsd-src/sbin/mount_nfs/ |
| H A D | mount_nfs.c | 174 mount_nfs_dogetargs(struct nfs_args *nfsargsp, int mntflags, const char *spec) in mount_nfs_dogetargs() argument 179 if ((mntflags & MNT_GETARGS) != 0) { in mount_nfs_dogetargs() 212 struct nfs_args *nfsargsp, int *mntflags, in mount_nfs_parseargs() argument 219 *mntflags = 0; in mount_nfs_parseargs() 281 mp = getmntopts(optarg, mopts, mntflags, &altflags); in mount_nfs_parseargs() 428 mount_nfs_dogetargs(nfsargsp, *mntflags, spec); in mount_nfs_parseargs() 436 int mntflags; in mount_nfs() 439 mount_nfs_parseargs(argc, argv, &args, &mntflags, spec, name); in mount_nfs() 442 if ((retval = mount(MOUNT_NFS, name, mntflags, in mount_nfs() 452 mount_nfs_dogetargs(&args, mntflags, spe in mount_nfs() 437 int mntflags; mount_nfs() local [all...] |
| /netbsd-src/sbin/mount_tmpfs/ |
| H A D | mount_tmpfs.c | 136 struct tmpfs_args *args, int *mntflags, in mount_tmpfs_parseargs() argument 153 *mntflags = 0; in mount_tmpfs_parseargs() 180 mp = getmntopts(optarg, mopts, mntflags, 0); in mount_tmpfs_parseargs() 242 int mntflags; in mount_tmpfs() local 244 mount_tmpfs_parseargs(argc, argv, &args, &mntflags, in mount_tmpfs() 247 if (mount(MOUNT_TMPFS, canon_dir, mntflags, &args, sizeof args) == -1) in mount_tmpfs() 250 if (mntflags & MNT_GETARGS) { in mount_tmpfs()
|