From owner-freebsd-current Thu Oct 24 16:13:14 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 A2BFB37B404 for ; Thu, 24 Oct 2002 16:13:12 -0700 (PDT) Received: from rootlabs.com (root.org [67.118.192.226]) by mx1.FreeBSD.org (Postfix) with SMTP id B91E543E6A for ; Thu, 24 Oct 2002 16:13:11 -0700 (PDT) (envelope-from nate@rootlabs.com) Received: (qmail 70206 invoked by uid 1000); 24 Oct 2002 23:13:02 -0000 Date: Thu, 24 Oct 2002 16:13:02 -0700 (PDT) From: Nate Lawson To: John Baldwin Cc: marcus@marcuscom.com, current@freebsd.org Subject: libgtop port and v_tag changes In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 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: > > > cat patch-sysdeps_freebsd_procmap.c > --- 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)) != sizeof (vnode)) > glibtop_error_io_r (server, "kvm_read (vnode)"); > > +#if __FreeBSD_version < 500000 > if ((vnode.v_type != VREG) || (vnode.v_tag != VT_UFS) || > !vnode.v_data) continue; > > @@ -261,6 +262,7 @@ > > maps [i-1].inode = inode.i_number; > maps [i-1].device = inode.i_dev; > +#endif > #endif > } while (entry.next != first); > > -- > > John Baldwin <>< http://www.FreeBSD.org/~jhb/ > "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ I assume Joe has a better version he planned to commit as referenced by this email: <1033747570.319.16.camel@gyros.marcuscom.com> I like his patch better because it still handles the non CURRENT case. Joe? -Nate To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message