Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 7 Jan 2008 10:25:23 -0500
From:      "Vic Abell" <abe@purdue.edu>
To:        "'Larry Rosenman'" <ler@lerctr.org>, "'Dmitry Morozovsky'" <marck@rinet.ru>
Cc:        'Wesley Shields' <wxs@freebsd.org>, Vicabell <abe@purdue.edu>, freebsd-ports@freebsd.org
Subject:   RE: lsof and ZFS
Message-ID:  <001401c85141$89218aa0$a4c30c48@radio>
In-Reply-To: <20080107090937.M41507@thebighonker.lerctr.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?001401c85141$89218aa0$a4c30c48>