summaryrefslogtreecommitdiffstats
path: root/sys/ufs
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1997-03-18 19:50:12 +0000
committerpeter <peter@FreeBSD.org>1997-03-18 19:50:12 +0000
commit53f3cf9fa12ec8f95cccf267a1bcef033e535a1f (patch)
tree63fa28c952e8d7bbbc02d23add059aec2415423b /sys/ufs
parent180a9eac68756d0a07ac189663a90f510d4fb930 (diff)
downloadFreeBSD-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/ufs')
-rw-r--r--sys/ufs/ffs/ffs_vfsops.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/ufs/ffs/ffs_vfsops.c b/sys/ufs/ffs/ffs_vfsops.c
index 1276bf8..7e5c2f3 100644
--- a/sys/ufs/ffs/ffs_vfsops.c
+++ b/sys/ufs/ffs/ffs_vfsops.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)ffs_vfsops.c 8.31 (Berkeley) 5/20/95
- * $Id: ffs_vfsops.c,v 1.46 1997/03/09 06:00:44 mpp Exp $
+ * $Id: ffs_vfsops.c,v 1.47 1997/03/15 18:58:10 sos Exp $
*/
#include "opt_quota.h"
@@ -587,6 +587,7 @@ ffs_mountfs(devvp, mp, p)
mp->mnt_stat.f_fsid.val[0] = (long)dev;
mp->mnt_stat.f_fsid.val[1] = mp->mnt_vfc->vfc_typenum;
mp->mnt_maxsymlinklen = fs->fs_maxsymlinklen;
+ mp->mnt_flag |= MNT_LOCAL;
ump->um_mountp = mp;
ump->um_dev = dev;
ump->um_devvp = devvp;
@@ -723,6 +724,7 @@ ffs_unmount(mp, mntflags, p)
free(fs, M_UFSMNT);
free(ump, M_UFSMNT);
mp->mnt_data = (qaddr_t)0;
+ mp->mnt_flag &= ~MNT_LOCAL;
return (error);
}
OpenPOWER on IntegriCloud