diff options
author | Poul-Henning Kamp <phk@FreeBSD.org> | 2004-12-05 22:41:02 +0000 |
---|---|---|
committer | Poul-Henning Kamp <phk@FreeBSD.org> | 2004-12-05 22:41:02 +0000 |
commit | 743312367ab3548756da9073d12bf6be6bb5578a (patch) | |
tree | 456f27e8cc68e4b4148ad4488fade6e1454b7acc /sys/fs/smbfs | |
parent | 061f5ec825bb5b10e898d7ec7e505d1a03b17b39 (diff) | |
download | src-743312367ab3548756da9073d12bf6be6bb5578a.tar.gz src-743312367ab3548756da9073d12bf6be6bb5578a.zip |
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.
Notes
Notes:
svn path=/head/; revision=138412
Diffstat (limited to 'sys/fs/smbfs')
-rw-r--r-- | sys/fs/smbfs/smbfs_vfsops.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/sys/fs/smbfs/smbfs_vfsops.c b/sys/fs/smbfs/smbfs_vfsops.c index 48e48207a016..1a0f76f24011 100644 --- a/sys/fs/smbfs/smbfs_vfsops.c +++ b/sys/fs/smbfs/smbfs_vfsops.c @@ -353,13 +353,5 @@ smbfs_statfs(struct mount *mp, struct statfs *sbp, struct thread *td) if (error) return error; 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; } |