Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 8 Jan 2008 23:46:55 -0600
From:      Jeffrey Lehman <jeff@digitalguy.net>
To:        Dan Nelson <dnelson@allantgroup.com>
Cc:        Jeffrey Lehman <jeff@digitalguy.net>, freebsd-questions@freebsd.org
Subject:   Re: lsof: can't determine device random seed
Message-ID:  <20080109054655.GA47013@abby.digitalguy.net>
In-Reply-To: <20080109052544.GA55800@dan.emsphone.com>
References:  <20080109013932.GA44661@abby.digitalguy.net> <20080109052544.GA55800@dan.emsphone.com>

next in thread | previous in thread | raw e-mail | index | archive | help

--17pEHd4RhPHOinZp
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Tue, Jan 08, 2008 at 11:25:44PM -0600, Dan Nelson wrote:
> In the last episode (Jan 08), Jeffrey Lehman said:
> > I'm running 7.0-RC1 amd64 and having an issue with lsof.
> >=20
> > # lsof
> > lsof: can't determine user device random seed.
> >=20
> > Anyone seen this problem and have a fix?
>=20
> Do you also have a zfs root?  That's what triggers it for me.  There's
> no mention of a "device random seed" anywhere in the kernel source, so
> I just patched lsof to always return OK and a seed of zero from
> dev2udev, and everything seems to work okay.  Try putting the attached
> patch in the files subdirectory of the lsof port and rebuild.
>=20
> --=20
> 	Dan Nelson
> 	dnelson@allantgroup.com

>=20
> --- dialects/freebsd/dmnt.c	2007-11-17 23:02:29.748574401 -0600
> +++ dialects/freebsd/dmnt.c	2007-11-17 23:02:29.750579975 -0600
> @@ -180,6 +180,8 @@ dev2udev_no_space:
>  	    }
>  	    break;
>  	}
> +
> +	ss =3D 1;
>  /*
>   * Free string copies, as required.
>   */

Yep, I'm running a zfs root.  The patch worked perfectly. Thanks much!

--=20
Jeffrey Lehman
http://digitalguy.net
GPG Key fingerprint =3D 3087 CED0 57F7 3BD3 14E7  969B EE14 BADA D619 8CF5

--17pEHd4RhPHOinZp
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4 (FreeBSD)

iD8DBQFHhF/O7hS62tYZjPURAlTzAJ9N4rcproGARyMNQMvZcuJQu//vvwCfb3F0
UdWj6aS/RWtcLZ9vGZXvIHc=
=xWTe
-----END PGP SIGNATURE-----

--17pEHd4RhPHOinZp--



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