dont stuff nfs mount point flags into the statfs f_flags member, its
authorthib <thib@openbsd.org>
Mon, 28 Jul 2008 13:35:14 +0000 (13:35 +0000)
committerthib <thib@openbsd.org>
Mon, 28 Jul 2008 13:35:14 +0000 (13:35 +0000)
wrong. But this was harmless anyway since sys_statfs() sets this field
corrently after calling VFS_STATFS();

ok pedro@, blambert@

sys/nfs/nfs_vfsops.c

index f2b4dfe..6361b90 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: nfs_vfsops.c,v 1.78 2008/07/10 18:17:56 thib Exp $    */
+/*     $OpenBSD: nfs_vfsops.c,v 1.79 2008/07/28 13:35:14 thib Exp $    */
 /*     $NetBSD: nfs_vfsops.c,v 1.46.4.1 1996/05/25 22:40:35 fvdl Exp $ */
 
 /*
@@ -141,7 +141,6 @@ nfs_statfs(mp, sbp, p)
                goto nfsmout;
        }
        nfsm_dissect(sfp, struct nfs_statfs *, NFSX_STATFS(v3));
-       sbp->f_flags = nmp->nm_flag;
        sbp->f_iosize = min(nmp->nm_rsize, nmp->nm_wsize);
        if (v3) {
                sbp->f_bsize = NFS_FABLKSIZE;