summaryrefslogtreecommitdiffstats
path: root/sys/fs/nullfs/null_vfsops.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2004-12-06 20:02:13 +0000
committerphk <phk@FreeBSD.org>2004-12-06 20:02:13 +0000
commit1eff61ea7fc1907c9330b7b5698b33244d9db5d1 (patch)
treeb16d4fa14e03bc9ed39697e4aa103ef9e068b3db /sys/fs/nullfs/null_vfsops.c
parent463e576c387bd3ccc95ed6e162a842ecf828e7e2 (diff)
downloadFreeBSD-src-1eff61ea7fc1907c9330b7b5698b33244d9db5d1.zip
FreeBSD-src-1eff61ea7fc1907c9330b7b5698b33244d9db5d1.tar.gz
Use vfs_mountedfrom(), rely on vfs_mount.c calling VFS_STATFS().
Diffstat (limited to 'sys/fs/nullfs/null_vfsops.c')
-rw-r--r--sys/fs/nullfs/null_vfsops.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/fs/nullfs/null_vfsops.c b/sys/fs/nullfs/null_vfsops.c
index fc8967a..21ee962 100644
--- a/sys/fs/nullfs/null_vfsops.c
+++ b/sys/fs/nullfs/null_vfsops.c
@@ -78,7 +78,6 @@ nullfs_mount(struct mount *mp, struct thread *td)
struct vnode *nullm_rootvp;
struct null_mount *xmp;
char *target;
- size_t size;
int isvnunlocked = 0, len;
struct nameidata nd, *ndp = &nd;
@@ -184,10 +183,8 @@ nullfs_mount(struct mount *mp, struct thread *td)
mp->mnt_data = (qaddr_t) xmp;
vfs_getnewfsid(mp);
- (void) copystr(target, mp->mnt_stat.f_mntfromname,
- MNAMELEN - 1, &size);
- bzero(mp->mnt_stat.f_mntfromname + size, MNAMELEN - size);
- (void)nullfs_statfs(mp, &mp->mnt_stat, td);
+ vfs_mountedfrom(mp, target);
+
NULLFSDEBUG("nullfs_mount: lower %s, alias at %s\n",
mp->mnt_stat.f_mntfromname, mp->mnt_stat.f_mntonname);
return (0);
OpenPOWER on IntegriCloud