diff options
author | iedowse <iedowse@FreeBSD.org> | 2005-05-02 15:57:10 +0000 |
---|---|---|
committer | iedowse <iedowse@FreeBSD.org> | 2005-05-02 15:57:10 +0000 |
commit | 2593dad93c3a27ef302788f5cdeb974c8d5835e3 (patch) | |
tree | 7093fc2f9b0dae03f0ff21173f3df3b2e09248d7 /sys/nfsclient | |
parent | f16e29fe55c3de0f07c488a1493069de2f20a793 (diff) | |
download | FreeBSD-src-2593dad93c3a27ef302788f5cdeb974c8d5835e3.zip FreeBSD-src-2593dad93c3a27ef302788f5cdeb974c8d5835e3.tar.gz |
Don't copy the NFSMNT_* flags into struct statfs's f_flags field,
as they have no connection with the expected MNT_* flags. This bug
was exposed 18 months ago when the assignments to f_flags in
vfs_syscalls.c were moved to before the VFS_STATFS() call. It was
fixed in the CSRG source 10 years ago, but we never picked up that
change.
PR: kern/80390
MFC after: 1 week
Diffstat (limited to 'sys/nfsclient')
-rw-r--r-- | sys/nfsclient/nfs_vfsops.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/sys/nfsclient/nfs_vfsops.c b/sys/nfsclient/nfs_vfsops.c index 92329ff..cb0f06a 100644 --- a/sys/nfsclient/nfs_vfsops.c +++ b/sys/nfsclient/nfs_vfsops.c @@ -266,7 +266,6 @@ nfs_statfs(struct mount *mp, struct statfs *sbp, struct thread *td) goto nfsmout; } sfp = nfsm_dissect(struct nfs_statfs *, NFSX_STATFS(v3)); - sbp->f_flags = nmp->nm_flag; sbp->f_iosize = nfs_iosize(nmp); if (v3) { sbp->f_bsize = NFS_FABLKSIZE; |