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/nfs4client | |
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/nfs4client')
-rw-r--r-- | sys/nfs4client/nfs4_vfs_subs.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/sys/nfs4client/nfs4_vfs_subs.c b/sys/nfs4client/nfs4_vfs_subs.c index 4a9fd65..1ac3df4 100644 --- a/sys/nfs4client/nfs4_vfs_subs.c +++ b/sys/nfs4client/nfs4_vfs_subs.c @@ -140,10 +140,4 @@ nfs4_vfsop_statfs(struct nfsv4_fattr *fap, struct statfs *sbp, struct mount *mp) fap->fa4_sfree / NFS_FABLKSIZE : 500000; sbp->f_blocks = fap->fa4_valid & FA4V_STOTAL ? fap->fa4_stotal / NFS_FABLKSIZE : 1000000; - - if (sbp != &mp->mnt_stat) { - sbp->f_type = mp->mnt_vfc->vfc_typenum; - bcopy(mp->mnt_stat.f_mntonname, sbp->f_mntonname, MNAMELEN); - bcopy(mp->mnt_stat.f_mntfromname, sbp->f_mntfromname, MNAMELEN); - } } |