Home
last modified time | relevance | path

Searched refs:MNT_RDONLY (Results 1 – 25 of 72) sorted by relevance

123

/freebsd/sbin/mount/
H A Dmntopts.h45 #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 Dmount.c569 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 Dt_union.c97 status ^= MNT_RDONLY;
175 RL(ffs_fstest_mount(tc, fsarg, "/lower", MNT_RDONLY)); in whiteout()
/freebsd/sys/fs/nullfs/
H A Dnull_vnops.c394 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 Dhv_vss_daemon.c67 } 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 Dfstest_nfs.c232 if (flags & MNT_RDONLY) { in nfsro_fstest_mount()
233 flags &= ~MNT_RDONLY; in nfsro_fstest_mount()
/freebsd/sys/kern/
H A Dvfs_mount.c782 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()
1554 if ((mp->mnt_flag & MNT_RDONLY) == 0) in vfs_domount_update()
2351 if ((mp->mnt_flag & MNT_RDONLY) == 0) { in dounmount()
[all …]
/freebsd/sys/fs/tmpfs/
H A Dtmpfs_vfsops.c300 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 Dvfs.h54 #define VFS_RDONLY MNT_RDONLY
/freebsd/sys/cddl/compat/opensolaris/sys/
H A Dvfs.h51 #define VFS_RDONLY MNT_RDONLY
/freebsd/sys/fs/msdosfs/
H A Dmsdosfs_denode.c322 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 Dmsdosfs_vfsops.c297 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 Dmsdosfs_vnops.c238 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 Drumpnfsd.c121 if ((ukfs = ukfs_mount(MOUNT_PUFFS, "/", UKFS_DEFAULTMP, MNT_RDONLY, in main()
/freebsd/tools/test/stress2/misc/
H A Dufssuspend.sh65 if (statfsp->f_flags & MNT_RDONLY)
/freebsd/sbin/mount_udf/
H A Dmount_udf.c122 mntflags |= MNT_RDONLY; in main()
/freebsd/usr.sbin/bsnmpd/modules/snmp_hostres/
H A Dhostres_fs_tbl.c367 if ((fs_p->f_flags & MNT_RDONLY) == MNT_RDONLY) in fs_tbl_process_statfs_entry()
/freebsd/lib/libc/gen/
H A Dstatvfs.c101 if (from->f_flags & MNT_RDONLY) in sfs2svfs()
/freebsd/contrib/netbsd-tests/fs/nullfs/
H A Dt_basic.c161 mountnull("/td", "/mp", MNT_RDONLY); in ATF_TC_BODY()
/freebsd/contrib/netbsd-tests/fs/ffs/
H A Dt_quota2_remount.c48 if (rump_sys_mount(MOUNT_FFS, FSTEST_MNTNAME, MNT_RDONLY, in do_quota()
/freebsd/sys/fs/smbfs/
H A Dsmbfs_vnops.c125 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 Dext2_vnops.c229 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 Dufs_acl.c435 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 Dmount.cc78 return MNT_RDONLY; in mntflag_from_string()
/freebsd/sys/ufs/ffs/
H A Dffs_vfsops.c456 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()

123