From owner-freebsd-ports@FreeBSD.ORG Mon Jan 7 15:39:13 2008 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B4A5216A418; Mon, 7 Jan 2008 15:39:13 +0000 (UTC) (envelope-from abe@purdue.edu) Received: from lsof.itap.purdue.edu (lsof.itap.purdue.edu [128.210.7.20]) by mx1.freebsd.org (Postfix) with ESMTP id 7385413C459; Mon, 7 Jan 2008 15:39:13 +0000 (UTC) (envelope-from abe@purdue.edu) Received: from radio (radio.abell.wintek.com [72.12.195.164]) by lsof.itap.purdue.edu (8.12.10/8.12.10) with ESMTP id m07FPr4o014524; Mon, 7 Jan 2008 10:25:53 -0500 (EST) From: "Vic Abell" To: "'Larry Rosenman'" , "'Dmitry Morozovsky'" Date: Mon, 7 Jan 2008 10:25:23 -0500 Message-ID: <001401c85141$89218aa0$a4c30c48@radio> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook, Build 10.0.6822 In-Reply-To: <20080107090937.M41507@thebighonker.lerctr.org> X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3198 Thread-Index: AchRP6VpNjtyySVwRBKz72cPqFvskAAABNGA Importance: Normal Cc: 'Wesley Shields' , Vicabell , freebsd-ports@freebsd.org Subject: RE: lsof and ZFS X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: abe@purdue.edu List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Jan 2008 15:39:13 -0000 Larry, You write: > > On Sat, 5 Jan 2008, Dmitry Morozovsky wrote: > > > > The only additional thing I would like to bring attention > > at is the fact that > > ZFS can be used as root, requiring to additionally patch > > lsof like FreeSBIE people did for cd9660 root. I'm not sure about that. The patch in the cd9660 PR was needed because lsof couldn't stat(2) the root file system. I'm not sure I understand why that is. What's more, the patch may have unwanted side effects which I can't determine myself -- e.g., lsof may not be able to convert kernel device numbers to the user space device numbers returned by stat(2) and displayed by ls(1). I've e-mailed the PR author, asking him to do some testing. > I believe Vic Abell (the author) is aware of this, although > my machines (that he is using for the dev, on RELENG_7), are > NOT rooted on ZFS, although everything else, except swap, is > on ZFS. Yes, Larry, I see that now. / is UFS. Some time someone will have to test the lsof update for ZFS on a system that does have / on ZFS. I won't be able to do that. I need to warn everyone that the ZFS update for FreeBSD lsof is going to take a lot of work and time. Lsof needs the znode structure definition (and other ZFS structure definitions) that are defined in the OpenSolaris sources and its header files won't compile in combination with any FreeBSD header files. I found the module compatibility stuff, so I know how to make the OpenSolaris headers compile, but it will require major modifications to lsof to be able to do it. Vic Abell, lsof author