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:
parent
69e45c755c
commit
836856e3e6
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user