mirror of
https://git.FreeBSD.org/src.git
synced 2025-01-25 16:13:17 +00:00
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
This commit is contained in:
parent
c46578bd27
commit
2c443c417c
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=145806
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user