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);
 }
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to