Date: Sun, 21 Dec 2014 11:33:19 +0000 (UTC) From: Edward Tomasz Napierala <trasz@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-10@freebsd.org Subject: svn commit: r276002 - stable/10/sys/fs/smbfs Message-ID: <201412211133.sBLBXJdB074097@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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); }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201412211133.sBLBXJdB074097>