From owner-freebsd-current Thu Oct 24 18:54:49 2002 Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 994C837B401; Thu, 24 Oct 2002 18:54:47 -0700 (PDT) Received: from creme-brulee.marcuscom.com (rdu57-17-158.nc.rr.com [66.57.17.158]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9A12443E65; Thu, 24 Oct 2002 18:54:46 -0700 (PDT) (envelope-from marcus@marcuscom.com) Received: from shumai.marcuscom.com (shumai.marcuscom.com [192.168.1.4]) by creme-brulee.marcuscom.com (8.12.6/8.12.6) with ESMTP id g9P1sA01076187; Thu, 24 Oct 2002 21:54:10 -0400 (EDT) (envelope-from marcus@marcuscom.com) Subject: Re: libgtop port and v_tag changes From: Joe Marcus Clarke To: Nate Lawson Cc: John Baldwin , current@FreeBSD.ORG In-Reply-To: References: Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="=-B5neZi8WdHNpxXB3ECiP" X-Mailer: Ximian Evolution 1.0.8 Date: 24 Oct 2002 21:55:11 -0400 Message-Id: <1035510912.33175.5.camel@shumai.marcuscom.com> Mime-Version: 1.0 X-Spam-Status: No, hits=-6.9 required=5.0 tests=AWL,IN_REP_TO,MIME_LONG_LINE_QP,PGP_SIGNATURE_2, QUOTED_EMAIL_TEXT,REFERENCES,SPAM_PHRASE_01_02, TO_BE_REMOVED_REPLY version=2.41 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG --=-B5neZi8WdHNpxXB3ECiP Content-Type: text/plain Content-Transfer-Encoding: quoted-printable On Thu, 2002-10-24 at 19:13, Nate Lawson wrote: > On Thu, 24 Oct 2002, John Baldwin wrote: > > Speaking of v_tag, can you fix the devel/libgtop port on current? > > This is the patch I used to get it building the other day: > >=20 > > > cat patch-sysdeps_freebsd_procmap.c=20 > > --- sysdeps/freebsd/procmap.c.orig Tue Oct 15 20:00:35 2002 > > +++ sysdeps/freebsd/procmap.c Tue Oct 15 20:05:54 2002 > > @@ -251,6 +251,7 @@ > > &vnode, sizeof (vnode)) !=3D sizeof (vnod= e)) > > glibtop_error_io_r (server, "kvm_read (vnode)")= ; > > =20 > > +#if __FreeBSD_version < 500000 > > if ((vnode.v_type !=3D VREG) || (vnode.v_tag !=3D VT_UF= S) || > > !vnode.v_data) continue; > > =20 > > @@ -261,6 +262,7 @@ > > =20 > > maps [i-1].inode =3D inode.i_number; > > maps [i-1].device =3D inode.i_dev; > > +#endif > > #endif > > } while (entry.next !=3D first); > >=20 > > --=20 > >=20 > > John Baldwin <>< http://www.FreeBSD.org/~jhb/ > > "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ >=20 > I assume Joe has a better version he planned to commit as referenced by > this email: >=20 > <1033747570.319.16.camel@gyros.marcuscom.com> >=20 > I like his patch better because it still handles the non CURRENT case. =20 > Joe? I committed my patch to libgtop and libgtop2 a while ago. It should work on both -CURRENT, not so -CURRENT, and -stable. Checkout patch-ah in libgtop/files. Works like a champ on -CURRENT from Monday. Joe >=20 > -Nate >=20 >=20 > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-current" in the body of the message >=20 --=20 PGP Key : http://www.marcuscom.com/pgp.asc --=-B5neZi8WdHNpxXB3ECiP Content-Type: application/pgp-signature; name=signature.asc Content-Description: This is a digitally signed message part -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (FreeBSD) iD8DBQA9uKR/b2iPiv4Uz4cRAvs4AJ0XotV0VBIXIHXJydaVqk9NfLe+AACgmAos tY2UgoygikFIfGWYnuWzjYQ= =ozd5 -----END PGP SIGNATURE----- --=-B5neZi8WdHNpxXB3ECiP-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message