Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 29 Nov 1998 03:44:07 +1100
From:      Bruce Evans <bde@zeta.org.au>
To:        a0074@netcologne.de, freebsd-bugs@FreeBSD.ORG, freebsd-current@FreeBSD.ORG
Subject:   Re: Correction of nfsstat in 3.0
Message-ID:  <199811281644.DAA25934@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>I've a 3.0 RELEASE on my box and it works well. Today I want use nfsstat but I g
>ot an error message. Here is the patch I make in nfsstat.c .
>
>
>172c172
><               name[1] = vfc.vfc_typenum;
>---
>>               name[1] = VFS_GENERIC;

vfc_typenum was broken in some (old, almost as old as 3.0) versions of the
kernel.  VFS_GENERIC isn't correct here.  It only works if nfs's vfc_typenum
happens to be VFS_GENERIC (= 0).  This should never happen for current
kernels, because the type numbers start at 1.

Bruce

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199811281644.DAA25934>