Lines Matching refs:fsflags
77 uint64_t fsflags, bool jail_export,
777 vfs_should_downgrade_to_ro_mount(uint64_t fsflags, int error) in vfs_should_downgrade_to_ro_mount() argument
780 if ((fsflags & MNT_UPDATE) != 0) in vfs_should_downgrade_to_ro_mount()
783 if ((fsflags & MNT_RDONLY) != 0) in vfs_should_downgrade_to_ro_mount()
802 vfs_donmount(struct thread *td, uint64_t fsflags, struct uio *fsoptions) in vfs_donmount() argument
876 fsflags |= MNT_UPDATE; in vfs_donmount()
880 fsflags |= MNT_ASYNC; in vfs_donmount()
882 fsflags |= MNT_FORCE; in vfs_donmount()
886 fsflags |= MNT_RELOAD; in vfs_donmount()
890 fsflags |= MNT_MULTILABEL; in vfs_donmount()
892 fsflags &= ~MNT_ASYNC; in vfs_donmount()
894 fsflags |= MNT_NOATIME; in vfs_donmount()
900 fsflags |= MNT_NOCLUSTERR; in vfs_donmount()
906 fsflags |= MNT_NOCLUSTERW; in vfs_donmount()
912 fsflags |= MNT_NOEXEC; in vfs_donmount()
918 fsflags |= MNT_NOSUID; in vfs_donmount()
924 fsflags |= MNT_NOSYMFOLLOW; in vfs_donmount()
930 fsflags &= ~MNT_RDONLY; in vfs_donmount()
934 fsflags &= ~MNT_RDONLY; in vfs_donmount()
938 fsflags |= MNT_RDONLY; in vfs_donmount()
944 fsflags |= MNT_RDONLY; in vfs_donmount()
952 fsflags |= MNT_SUIDDIR; in vfs_donmount()
954 fsflags |= MNT_SYNCHRONOUS; in vfs_donmount()
956 fsflags |= MNT_UNION; in vfs_donmount()
958 fsflags |= MNT_EXPORTED; in vfs_donmount()
961 fsflags |= MNT_AUTOMOUNTED; in vfs_donmount()
964 fsflags |= MNT_NOCOVER; in vfs_donmount()
967 fsflags &= ~MNT_NOCOVER; in vfs_donmount()
970 fsflags |= MNT_EMPTYDIR; in vfs_donmount()
973 fsflags &= ~MNT_EMPTYDIR; in vfs_donmount()
998 error = vfs_domount(td, fstype, fspath, fsflags, jail_export, &optlist); in vfs_donmount()
1012 if (autoro && vfs_should_downgrade_to_ro_mount(fsflags, error)) { in vfs_donmount()
1015 fsflags |= MNT_RDONLY; in vfs_donmount()
1016 error = vfs_domount(td, fstype, fspath, fsflags, jail_export, in vfs_donmount()
1116 uint64_t fsflags, /* Flags common to all filesystems. */ in vfs_domount_first() argument
1127 KASSERT((fsflags & MNT_UPDATE) == 0, ("MNT_UPDATE shouldn't be here")); in vfs_domount_first()
1160 if (error == 0 && (fsflags & MNT_EMPTYDIR) != 0) in vfs_domount_first()
1182 mp->mnt_flag = (fsflags & in vfs_domount_first()
1306 uint64_t fsflags, /* Flags common to all filesystems. */ in vfs_domount_update() argument
1323 KASSERT((fsflags & MNT_UPDATE) != 0, ("MNT_UPDATE should be here")); in vfs_domount_update()
1341 if ((fsflags & MNT_RELOAD) != 0 && (flag & MNT_RDONLY) == 0) { in vfs_domount_update()
1407 KASSERT((fsflags & (MNT_EXPORTED | MNT_UPDATE)) == in vfs_domount_update()
1422 (fsflags & MNT_UNION) != 0) { in vfs_domount_update()
1423 fsflags &= ~MNT_UNION; in vfs_domount_update()
1426 mp->mnt_flag |= fsflags & (MNT_RELOAD | MNT_FORCE | MNT_UPDATE | in vfs_domount_update()
1589 uint64_t fsflags, /* Flags common to all filesystems. */ in vfs_domount() argument
1620 if (fsflags & MNT_EXPORTED) { in vfs_domount()
1625 if (fsflags & MNT_SUIDDIR) { in vfs_domount()
1633 if ((fsflags & (MNT_NOSUID | MNT_USER)) != (MNT_NOSUID | MNT_USER)) { in vfs_domount()
1635 fsflags |= MNT_NOSUID | MNT_USER; in vfs_domount()
1640 if ((fsflags & MNT_UPDATE) == 0) { in vfs_domount()
1642 if (fsflags & MNT_ROOTFS) { in vfs_domount()
1665 fsflags |= MNT_NOCOVER; in vfs_domount()
1666 if ((fsflags & MNT_UPDATE) == 0) { in vfs_domount()
1668 (fsflags & MNT_NOCOVER) != 0) { in vfs_domount()
1689 fsflags, optlist); in vfs_domount()
1693 error = vfs_domount_update(td, vp, fsflags, jail_export, in vfs_domount()