/freebsd/sbin/mount/ |
H A D | mntopts.h | 45 #define MOPT_RDONLY { "rdonly", 0, MNT_RDONLY, 0 } 63 #define MOPT_RO { "ro", 0, MNT_RDONLY, 0 } 64 #define MOPT_RW { "rw", 1, MNT_RDONLY, 0 }
|
H A D | mount.c | 569 if (flags & MNT_RDONLY) in mountfs() 899 if ((ent->f_flags & MNT_RDONLY) != 0) in putfsent() 955 if (flags & MNT_RDONLY) res = catopt(res, "ro"); in flags2opts()
|
/freebsd/contrib/netbsd-tests/fs/vfs/ |
H A D | t_union.c | 97 status ^= MNT_RDONLY; 175 RL(ffs_fstest_mount(tc, fsarg, "/lower", MNT_RDONLY)); in whiteout()
|
/freebsd/sys/fs/nullfs/ |
H A D | null_vnops.c | 394 if ((flags & ISLASTCN) != 0 && (mp->mnt_flag & MNT_RDONLY) != 0 && in null_lookup() 455 (mp->mnt_flag & MNT_RDONLY) != 0 && in null_lookup() 506 (vp->v_mount->mnt_flag & MNT_RDONLY)) in null_setattr() 526 if (vp->v_mount->mnt_flag & MNT_RDONLY) in null_setattr() 580 if (vp->v_mount->mnt_flag & MNT_RDONLY) in null_access() 606 if (vp->v_mount->mnt_flag & MNT_RDONLY) in null_accessx()
|
/freebsd/contrib/hyperv/tools/ |
H A D | hv_vss_daemon.c | 67 } else if (statfsp->f_flags & MNT_RDONLY) { in check() 102 } else if (statfsp->f_flags & MNT_RDONLY) { in freeze()
|
/freebsd/contrib/netbsd-tests/fs/common/ |
H A D | fstest_nfs.c | 232 if (flags & MNT_RDONLY) { in nfsro_fstest_mount() 233 flags &= ~MNT_RDONLY; in nfsro_fstest_mount()
|
/freebsd/sys/kern/ |
H A D | vfs_mount.c | 782 if ((fsflags & MNT_RDONLY) != 0) in vfs_should_downgrade_to_ro_mount() 929 fsflags &= ~MNT_RDONLY; in vfs_donmount() 933 fsflags &= ~MNT_RDONLY; in vfs_donmount() 937 fsflags |= MNT_RDONLY; in vfs_donmount() 943 fsflags |= MNT_RDONLY; in vfs_donmount() 1014 fsflags |= MNT_RDONLY; in vfs_donmount() 1097 ma = mount_argb(ma, flags & MNT_RDONLY, "noro"); in sys_mount() 1291 if ((mp->mnt_flag & MNT_RDONLY) == 0) in vfs_domount_first() 1561 if ((mp->mnt_flag & MNT_RDONLY) == 0) in vfs_domount_update() 2358 if ((mp->mnt_flag & MNT_RDONLY) == 0) { in dounmount() [all …]
|
/freebsd/sys/fs/tmpfs/ |
H A D | tmpfs_vfsops.c | 300 mp->mnt_flag |= MNT_RDONLY; in tmpfs_rw_to_ro() 309 mp->mnt_flag &= ~MNT_RDONLY; in tmpfs_rw_to_ro() 372 mp->mnt_flag &= ~MNT_RDONLY; in tmpfs_mount() 460 tmp->tm_ronly = (mp->mnt_flag & MNT_RDONLY) != 0; in tmpfs_mount()
|
/freebsd/sys/contrib/openzfs/include/os/freebsd/spl/sys/ |
H A D | vfs.h | 54 #define VFS_RDONLY MNT_RDONLY
|
/freebsd/sys/cddl/compat/opensolaris/sys/ |
H A D | vfs.h | 51 #define VFS_RDONLY MNT_RDONLY
|
/freebsd/sys/fs/msdosfs/ |
H A D | msdosfs_denode.c | 322 if (DETOV(dep)->v_mount->mnt_flag & MNT_RDONLY) { in deupdat() 662 (unsigned long long)MNT_RDONLY); in msdosfs_inactive() 664 if (dep->de_refcnt <= 0 && (vp->v_mount->mnt_flag & MNT_RDONLY) == 0) { in msdosfs_inactive()
|
H A D | msdosfs_vfsops.c | 297 mp->mnt_flag |= MNT_RDONLY; in msdosfs_mount() 340 mp->mnt_flag &= ~MNT_RDONLY; in msdosfs_mount() 373 if ((mp->mnt_flag & MNT_RDONLY) == 0) in msdosfs_mount() 521 ronly = (mp->mnt_flag & MNT_RDONLY) != 0; in mountmsdosfs() 991 } else if ((pmp->pm_mountp->mnt_flag & MNT_RDONLY) == 0) { in msdosfs_remount_ro()
|
H A D | msdosfs_vnops.c | 238 if (vp->v_mount->mnt_flag & MNT_RDONLY) in msdosfs_access() 375 if (vp->v_mount->mnt_flag & MNT_RDONLY) in msdosfs_setattr() 417 if (vp->v_mount->mnt_flag & MNT_RDONLY) in msdosfs_setattr() 444 if (vp->v_mount->mnt_flag & MNT_RDONLY) in msdosfs_setattr() 468 if (vp->v_mount->mnt_flag & MNT_RDONLY) in msdosfs_setattr() 498 if (vp->v_mount->mnt_flag & MNT_RDONLY) in msdosfs_setattr() 605 (vp->v_mount->mnt_flag & (MNT_NOATIME | MNT_RDONLY)) == 0) in msdosfs_read()
|
/freebsd/contrib/netbsd-tests/fs/nfs/nfsservice/ |
H A D | rumpnfsd.c | 121 if ((ukfs = ukfs_mount(MOUNT_PUFFS, "/", UKFS_DEFAULTMP, MNT_RDONLY, in main()
|
/freebsd/tools/test/stress2/misc/ |
H A D | ufssuspend.sh | 65 if (statfsp->f_flags & MNT_RDONLY)
|
/freebsd/sbin/mount_udf/ |
H A D | mount_udf.c | 122 mntflags |= MNT_RDONLY; in main()
|
/freebsd/usr.sbin/bsnmpd/modules/snmp_hostres/ |
H A D | hostres_fs_tbl.c | 367 if ((fs_p->f_flags & MNT_RDONLY) == MNT_RDONLY) in fs_tbl_process_statfs_entry()
|
/freebsd/lib/libc/gen/ |
H A D | statvfs.c | 101 if (from->f_flags & MNT_RDONLY) in sfs2svfs()
|
/freebsd/contrib/netbsd-tests/fs/nullfs/ |
H A D | t_basic.c | 161 mountnull("/td", "/mp", MNT_RDONLY); in ATF_TC_BODY()
|
/freebsd/contrib/netbsd-tests/fs/ffs/ |
H A D | t_quota2_remount.c | 48 if (rump_sys_mount(MOUNT_FFS, FSTEST_MNTNAME, MNT_RDONLY, in do_quota()
|
/freebsd/sys/fs/smbfs/ |
H A D | smbfs_vnops.c | 125 if ((accmode & VWRITE) && (vp->v_mount->mnt_flag & MNT_RDONLY)) { in smbfs_access() 186 if ((vp->v_mount->mnt_flag & MNT_RDONLY) == 0) in smbfs_open() 194 else if ((vp->v_mount->mnt_flag & MNT_RDONLY) == 0) { in smbfs_open() 279 isreadonly = (vp->v_mount->mnt_flag & MNT_RDONLY); in smbfs_setattr() 1068 if (islastcn && (mp->mnt_flag & MNT_RDONLY) && (nameiop != LOOKUP)) in smbfs_lookup()
|
/freebsd/sys/fs/ext2fs/ |
H A D | ext2_vnops.c | 229 if ((vp->v_mount->mnt_flag & MNT_RDONLY) == 0) { in ext2_itimes_locked() 329 if (vp->v_mount->mnt_flag & MNT_RDONLY) in ext2_access() 411 if (vp->v_mount->mnt_flag & MNT_RDONLY) in ext2_setattr() 448 if (vp->v_mount->mnt_flag & MNT_RDONLY) in ext2_setattr() 465 if (vp->v_mount->mnt_flag & MNT_RDONLY) in ext2_setattr() 475 if (vp->v_mount->mnt_flag & MNT_RDONLY) in ext2_setattr() 510 if (vp->v_mount->mnt_flag & MNT_RDONLY) in ext2_setattr() 2127 (vp->v_mount->mnt_flag & (MNT_NOATIME | MNT_RDONLY)) == 0) in ext2_read()
|
/freebsd/sys/ufs/ufs/ |
H A D | ufs_acl.c | 435 if (ap->a_vp->v_mount->mnt_flag & MNT_RDONLY) in ufs_setacl_nfs4() 515 if (ap->a_vp->v_mount->mnt_flag & MNT_RDONLY) in ufs_setacl_posix1e()
|
/freebsd/tests/sys/fs/fusefs/ |
H A D | mount.cc | 78 return MNT_RDONLY; in mntflag_from_string()
|
/freebsd/sys/ufs/ffs/ |
H A D | ffs_vfsops.c | 456 if ((mp->mnt_flag & MNT_RDONLY) == 0) in ffs_mount() 572 mp->mnt_flag |= MNT_RDONLY; in ffs_mount() 634 saved_mnt_flag = MNT_RDONLY; in ffs_mount() 767 if ((mp->mnt_flag & MNT_RDONLY) == 0 && (flags & FFSR_FORCE) == 0) { in ffs_reload() 924 ronly = (mp->mnt_flag & MNT_RDONLY) != 0; in ffs_mountfs() 1017 if ((mp->mnt_flag & MNT_RDONLY) == 0) in ffs_mountfs() 2002 if ((vp->v_mount->mnt_flag & MNT_RDONLY) == 0) { in ffs_vgetf() 2161 (ump->um_mountp->mnt_flag & (MNT_RDONLY | MNT_UPDATE)) != in ffs_sbupdate() 2162 (MNT_RDONLY | MNT_UPDATE)) in ffs_sbupdate()
|