diff options
author | trasz <trasz@FreeBSD.org> | 2014-11-21 06:21:39 +0000 |
---|---|---|
committer | trasz <trasz@FreeBSD.org> | 2014-11-21 06:21:39 +0000 |
commit | 7e9273db3f3d74977c63000de86269cf833c2718 (patch) | |
tree | a012ca957d642f50a078c4d90c6cae67b87e5706 /sys/fs/smbfs/smbfs_vfsops.c | |
parent | 526778513d347db29a6663e472861ac95b5c3c5b (diff) | |
download | FreeBSD-src-7e9273db3f3d74977c63000de86269cf833c2718.zip FreeBSD-src-7e9273db3f3d74977c63000de86269cf833c2718.tar.gz |
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
Diffstat (limited to 'sys/fs/smbfs/smbfs_vfsops.c')
-rw-r--r-- | sys/fs/smbfs/smbfs_vfsops.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sys/fs/smbfs/smbfs_vfsops.c b/sys/fs/smbfs/smbfs_vfsops.c index 8277982..cd60268 100644 --- a/sys/fs/smbfs/smbfs_vfsops.c +++ b/sys/fs/smbfs/smbfs_vfsops.c @@ -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); } |