diff options
author | phk <phk@FreeBSD.org> | 2004-12-05 22:41:02 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-12-05 22:41:02 +0000 |
commit | 6c14f71ef7197ba00d32563670ba895b74e646a2 (patch) | |
tree | 456f27e8cc68e4b4148ad4488fade6e1454b7acc /sys/fs/nwfs | |
parent | 8b42e21d12e627514808f983d93b02293eaab637 (diff) | |
download | FreeBSD-src-6c14f71ef7197ba00d32563670ba895b74e646a2.zip FreeBSD-src-6c14f71ef7197ba00d32563670ba895b74e646a2.tar.gz |
VFS_STATFS(mp, ...) is mostly called with &mp->mnt_stat, but a few cases
doesn't. Most of the implementations have grown weeds for this so they
copy some fields from mnt_stat if the passed argument isn't that.
Fix this the cleaner way: Always call the implementation on mnt_stat
and copy that in toto to the VFS_STATFS argument if different.
Diffstat (limited to 'sys/fs/nwfs')
-rw-r--r-- | sys/fs/nwfs/nwfs_vfsops.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/sys/fs/nwfs/nwfs_vfsops.c b/sys/fs/nwfs/nwfs_vfsops.c index 2baf183..bec5d1b 100644 --- a/sys/fs/nwfs/nwfs_vfsops.c +++ b/sys/fs/nwfs/nwfs_vfsops.c @@ -418,13 +418,5 @@ nwfs_statfs(mp, sbp, td) /* free file nodes in fs */ sbp->f_ffree = vi.available_dir_entries; sbp->f_flags = 0; /* copy of mount exported flags */ - if (sbp != &mp->mnt_stat) { - sbp->f_fsid = mp->mnt_stat.f_fsid; /* filesystem id */ - sbp->f_owner = mp->mnt_stat.f_owner; /* user that mounted the filesystem */ - sbp->f_type = mp->mnt_vfc->vfc_typenum; /* type of filesystem */ - bcopy(mp->mnt_stat.f_mntonname, sbp->f_mntonname, MNAMELEN); - bcopy(mp->mnt_stat.f_mntfromname, sbp->f_mntfromname, MNAMELEN); - } - strncpy(sbp->f_fstypename, mp->mnt_vfc->vfc_name, MFSNAMELEN); return 0; } |