svn commit: r274784 - head/sys/fs/smbfs

Edward Tomasz Napierala trasz at FreeBSD.org
Fri Nov 21 06:21:40 UTC 2014


Author: trasz
Date: Fri Nov 21 06:21:39 2014
New Revision: 274784
URL: https://svnweb.freebsd.org/changeset/base/274784

Log:
  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

Modified:
  head/sys/fs/smbfs/smbfs_vfsops.c

Modified: head/sys/fs/smbfs/smbfs_vfsops.c
==============================================================================
--- head/sys/fs/smbfs/smbfs_vfsops.c	Fri Nov 21 03:22:22 2014	(r274783)
+++ head/sys/fs/smbfs/smbfs_vfsops.c	Fri Nov 21 06:21:39 2014	(r274784)
@@ -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-head mailing list