Fix smbfs to not zero out statfs f_flags field. Previously, this

made getmntinfo() return empty flags for smbfs filesystems when
called with MNT_WAIT. It's not visible with mount(8), since it uses
MNT_NOWAIT, but broke autounmount(8) operation.

PR:		195161
Differential Revision:	https://reviews.freebsd.org/D1194
Reviewed by:	kib@
MFC after:	1 month
Sponsored by:	The FreeBSD Foundation
This commit is contained in:
Edward Tomasz Napierala 2014-11-21 06:21:39 +00:00
parent 69e45c755c
commit 836856e3e6
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=274784

View File

@ -401,8 +401,6 @@ smbfs_statfs(struct mount *mp, struct statfs *sbp)
scred = smbfs_malloc_scred();
smb_makescred(scred, td, td->td_ucred);
error = smbfs_smb_statfs(ssp, sbp, scred);
if (error == 0)
sbp->f_flags = 0; /* copy of mount exported flags */
smbfs_free_scred(scred);
return (error);
}