Home | History | Annotate | Download | only in ffs

Lines Matching refs:ump

211 	struct ufsmount *ump = VFSTOUFS(mp);
213 int error = bread(ump->um_devvp, FFS_FSBTODB(fs, cgtod(fs, cg)),
368 struct ufsmount *ump;
390 ump = VFSTOUFS(mp);
391 fs = ump->um_fs;
403 struct ufsmount *ump;
405 ump = VFSTOUFS(mp);
406 if (ump->um_fstype == UFS2 && (ump->um_flags & UFS_EA) == 0 &&
468 struct ufsmount *ump = NULL;
482 ump = VFSTOUFS(mp);
483 if ((mp->mnt_flag & (MNT_GETARGS|MNT_UPDATE)) && ump == NULL) {
484 DPRINTF("no ump");
535 if (devvp != ump->um_devvp &&
536 devvp->v_rdev != ump->um_devvp->v_rdev) {
539 (uintmax_t)ump->um_devvp->v_rdev);
549 devvp = ump->um_devvp;
617 ump = VFSTOUFS(mp);
618 fs = ump->um_fs;
632 ump = VFSTOUFS(mp);
633 fs = ump->um_fs;
651 if (ffs_cgupdate(ump, MNT_WAIT) == 0 &&
656 (void) ffs_sbupdate(ump, MNT_WAIT);
697 ump->um_flags |= UFS_QUOTA2;
752 if ((mp->mnt_flag & MNT_DISCARD) && !(ump->um_discarddata))
753 ump->um_discarddata = ffs_discard_init(devvp, fs);
772 mutex_enter(&ump->um_lock);
779 mutex_exit(&ump->um_lock);
780 (void) ffs_cgupdate(ump, MNT_WAIT);
782 mutex_exit(&ump->um_lock);
822 struct ufsmount *ump;
829 ump = VFSTOUFS(mp);
834 devvp = ump->um_devvp;
846 fs = ump->um_fs;
856 if (ump->um_flags & UFS_NEEDSWAP) {
867 ump->um_flags |= UFS_EA;
870 if ((ump->um_flags & UFS_EA) != 0)
914 ump->um_flags &= ~UFS_ISAPPLEUFS;
917 ump->um_flags |= UFS_ISAPPLEUFS;
924 if (UFS_MPISAPPLEUFS(ump)) {
926 ump->um_maxsymlinklen = APPLEUFS_MAXSYMLINKLEN;
927 ump->um_dirblksiz = APPLEUFS_DIRBLKSIZ;
930 ump->um_maxsymlinklen = fs->fs_maxsymlinklen;
931 ump->um_dirblksiz = UFS_DIRBLKSIZ;
932 if (ump->um_maxsymlinklen > 0)
937 ffs_oldfscompat_read(fs, ump, sblockloc);
939 mutex_enter(&ump->um_lock);
940 ump->um_maxfilesize = fs->fs_maxfilesize;
946 mutex_exit(&ump->um_lock);
955 mutex_exit(&ump->um_lock);
1170 struct ufsmount *ump = NULL;
1199 ump = kmem_zalloc(sizeof(*ump), KM_SLEEP);
1200 mutex_init(&ump->um_lock, MUTEX_DEFAULT, IPL_NONE);
1201 error = ffs_snapshot_init(ump);
1206 ump->um_ops = &ffs_ufsops;
1247 ump->um_flags |= UFS_EA;
1250 ump
1326 ump->um_fs = fs;
1371 ffs_oldfscompat_read(fs, ump, sblockloc);
1372 ump->um_maxfilesize = fs->fs_maxfilesize;
1391 ump->um_fstype = fstype;
1400 ump->um_flags |= UFS_ISAPPLEUFS;
1524 mp->mnt_data = ump;
1529 if (UFS_MPISAPPLEUFS(ump)) {
1535 ump->um_maxsymlinklen = APPLEUFS_MAXSYMLINKLEN;
1536 ump->um_dirblksiz = APPLEUFS_DIRBLKSIZ;
1539 ump->um_maxsymlinklen = fs->fs_maxsymlinklen;
1540 ump->um_dirblksiz = UFS_DIRBLKSIZ;
1541 if (ump->um_maxsymlinklen > 0)
1553 ump->um_flags |= UFS_NEEDSWAP;
1558 ump->um_mountp = mp;
1559 ump->um_dev = dev;
1560 ump->um_devvp = devvp;
1561 ump->um_nindir = fs->fs_nindir;
1562 ump->um_lognindir = ffs(fs->fs_nindir) - 1;
1563 ump->um_bptrtodb = fs->fs_fshift - DEV_BSHIFT;
1564 ump->um_seqinc = fs->fs_frag;
1566 ump->um_quotas[i] = NULLVP;
1599 ump->um_flags |= UFS_QUOTA2;
1613 ump->um_discarddata = ffs_discard_init(devvp, fs);
1632 if (ump) {
1633 if (ump->um_oldfscompat)
1634 kmem_free(ump->um_oldfscompat, 512 + 3*sizeof(int32_t));
1635 mutex_destroy(&ump->um_lock);
1636 kmem_free(ump, sizeof(*ump));
1650 ffs_oldfscompat_read(struct fs *fs, struct ufsmount *ump, daddr_t sblockloc)
1659 if (!ump->um_oldfscompat)
1660 ump->um_oldfscompat = kmem_alloc(512 + 3*sizeof(int32_t),
1663 memcpy(ump->um_oldfscompat, &fs->fs_old_postbl_start, 512);
1664 extrasave = ump->um_oldfscompat;
1728 ffs_oldfscompat_write(struct fs *fs, struct ufsmount *ump)
1749 memcpy(&fs->fs_old_postbl_start, ump->um_oldfscompat, 512);
1750 extrasave = ump->um_oldfscompat;
1765 struct ufsmount *ump = VFSTOUFS(mp);
1766 struct fs *fs = ump->um_fs;
1776 if (ump->um_discarddata) {
1777 ffs_discard_finish(ump->um_discarddata, mntflags);
1778 ump->um_discarddata = NULL;
1787 if (ffs_cgupdate(ump, MNT_WAIT) == 0 &&
1789 mutex_enter(&ump->um_lock);
1792 mutex_exit(&ump->um_lock);
1793 (void) ffs_sbupdate(ump, MNT_WAIT);
1811 if (ump->um_devvp->v_type != VBAD)
1812 spec_node_setmountedfs(ump->um_devvp, NULL);
1813 vn_lock(ump->um_devvp, LK_EXCLUSIVE | LK_RETRY);
1814 (void)VOP_CLOSE(ump->um_devvp, fs->fs_ronly ? FREAD : FREAD | FWRITE,
1816 vput(ump->um_devvp);
1825 if (ump->um_oldfscompat != NULL)
1826 kmem_free(ump->um_oldfscompat, 512 + 3*sizeof(int32_t));
1827 mutex_destroy(&ump->um_lock);
1828 ffs_snapshot_fini(ump);
1829 kmem_free(ump, sizeof(*ump));
1842 struct ufsmount *ump;
1847 ump = VFSTOUFS(mp);
1857 if (ump->um_fstype == UFS1) {
1858 if (ump->um_extattr.uepm_flags & UFS_EXTATTR_UEPM_STARTED)
1860 if (ump->um_extattr.uepm_flags & UFS_EXTATTR_UEPM_INITIALIZED)
1861 ufs_extattr_uepm_destroy(&ump->um_extattr);
1877 vn_lock(ump->um_devvp, LK_EXCLUSIVE | LK_RETRY);
1878 error = VOP_FSYNC(ump->um_devvp, l->l_cred, FSYNC_WAIT, 0, 0);
1879 VOP_UNLOCK(ump->um_devvp);
1902 struct ufsmount *ump;
1905 ump = VFSTOUFS(mp);
1906 fs = ump->um_fs;
1907 mutex_enter(&ump->um_lock);
1924 mutex_exit(&ump->um_lock);
1982 struct ufsmount *ump = VFSTOUFS(mp);
1988 fs = ump->um_fs;
2030 mutex_enter(ump->um_devvp->v_interlock);
2031 need_devvp_fsync = (ump->um_devvp->v_numoutput > 0 ||
2032 !LIST_EMPTY(&ump->um_devvp->v_dirtyblkhd));
2033 mutex_exit(ump->um_devvp->v_interlock);
2040 vn_lock(ump->um_devvp, LK_EXCLUSIVE | LK_RETRY);
2041 if ((error = VOP_FSYNC(ump->um_devvp, cred, flags, 0,
2044 VOP_UNLOCK(ump->um_devvp);
2057 mutex_enter(&ump->um_lock);
2061 mutex_exit(&ump->um_lock);
2062 if ((error = ffs_cgupdate(ump, waitfor)))
2065 mutex_exit(&ump->um_lock);
2085 ffs_init_vnode(struct ufsmount *ump, struct vnode *vp, ino_t ino)
2092 fs = ump->um_fs;
2095 error = bread(ump->um_devvp, FFS_FSBTODB(fs, ino_to_fsba(fs, ino)),
2103 ip->i_ump = ump;
2105 ip->i_dev = ump->um_dev;
2107 if (ump->um_fstype == UFS1)
2135 ffs_deinit_vnode(struct ufsmount *ump, struct vnode *vp)
2142 if (ump->um_fstype == UFS1)
2160 struct ufsmount *ump;
2165 ump = VFSTOUFS(mp);
2166 fs = ump->um_fs;
2168 error = ffs_init_vnode(ump, vp, ino);
2174 ffs_deinit_vnode(ump, vp);
2183 ip->i_devvp = ump->um_devvp;
2214 struct ufsmount *ump;
2221 ump = VFSTOUFS(mp);
2222 fs = ump->um_fs;
2231 error = ffs_init_vnode(ump, vp, ino);
2273 ffs_deinit_vnode(ump, vp);
2281 ffs_deinit_vnode(ump, vp);
2298 if (ump->um_fstype == UFS1)
2300 UFS_MPNEEDSWAP(ump));
2303 UFS_MPNEEDSWAP(ump));
2306 ip->i_devvp = ump->um_devvp;