diff options
author | peter <peter@FreeBSD.org> | 1997-03-18 19:50:12 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1997-03-18 19:50:12 +0000 |
commit | 53f3cf9fa12ec8f95cccf267a1bcef033e535a1f (patch) | |
tree | 63fa28c952e8d7bbbc02d23add059aec2415423b /sys/msdosfs/msdosfs_vfsops.c | |
parent | 180a9eac68756d0a07ac189663a90f510d4fb930 (diff) | |
download | FreeBSD-src-53f3cf9fa12ec8f95cccf267a1bcef033e535a1f.zip FreeBSD-src-53f3cf9fa12ec8f95cccf267a1bcef033e535a1f.tar.gz |
Restore the lost MNT_LOCAL flag twiddle. Lite2 has a different mechanism
of setting it (compiled into vfs_conf.c), but we have a dynamic system
in place. This could probably be better done via a runtime configure
flag in the VFS_SET() VFS declaration, perhaps VFCF_LOCAL, and have the
VFS code propagate this down into MNT_LOCAL at mount time. The other FS's
would need to be updated, havinf UFS and MSDOSFS filesystems without
MNT_LOCAL breaks a few things.. the man page rebuild scans for local
filesystems and currently fails, I suspect that other tools like find
and tar with their "local filesystem only" modes might be affected.
Diffstat (limited to 'sys/msdosfs/msdosfs_vfsops.c')
-rw-r--r-- | sys/msdosfs/msdosfs_vfsops.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/msdosfs/msdosfs_vfsops.c b/sys/msdosfs/msdosfs_vfsops.c index cd78d84..cf37d4d 100644 --- a/sys/msdosfs/msdosfs_vfsops.c +++ b/sys/msdosfs/msdosfs_vfsops.c @@ -1,4 +1,4 @@ -/* $Id: msdosfs_vfsops.c,v 1.16 1997/02/22 09:40:48 peter Exp $ */ +/* $Id: msdosfs_vfsops.c,v 1.17 1997/02/26 14:23:14 bde Exp $ */ /* $NetBSD: msdosfs_vfsops.c,v 1.19 1994/08/21 18:44:10 ws Exp $ */ /*- @@ -528,6 +528,7 @@ mountmsdosfs(devvp, mp, p) mp->mnt_data = (qaddr_t) pmp; mp->mnt_stat.f_fsid.val[0] = (long)dev; mp->mnt_stat.f_fsid.val[1] = mp->mnt_vfc->vfc_typenum; + mp->mnt_flag |= MNT_LOCAL; devvp->v_specflags |= SI_MOUNTEDON; return 0; @@ -587,6 +588,7 @@ msdosfs_unmount(mp, mntflags, p) free((caddr_t) pmp->pm_inusemap, M_MSDOSFSFAT); free((caddr_t) pmp, M_MSDOSFSMNT); mp->mnt_data = (qaddr_t) 0; + mp->mnt_flag &= ~MNT_LOCAL; return error; } |