svn commit: r276002 - stable/10/sys/fs/smbfs
Edward Tomasz Napierala
trasz at FreeBSD.org
Sun Dec 21 11:33:19 UTC 2014
Author: trasz
Date: Sun Dec 21 11:33:18 2014
New Revision: 276002
URL: https://svnweb.freebsd.org/changeset/base/276002
Log:
MFC r274784:
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
Sponsored by: The FreeBSD Foundation
Modified:
stable/10/sys/fs/smbfs/smbfs_vfsops.c
Directory Properties:
stable/10/ (props changed)
Modified: stable/10/sys/fs/smbfs/smbfs_vfsops.c
==============================================================================
--- stable/10/sys/fs/smbfs/smbfs_vfsops.c Sun Dec 21 11:26:51 2014 (r276001)
+++ stable/10/sys/fs/smbfs/smbfs_vfsops.c Sun Dec 21 11:33:18 2014 (r276002)
@@ -401,8 +401,6 @@ smbfs_statfs(struct mount *mp, struct st
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);
}
More information about the svn-src-all
mailing list