lsof: can't determine device random seed

Jeffrey Lehman jeff at digitalguy.net
Tue Jan 8 21:47:13 PST 2008


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.
> > 
> > # lsof
> > lsof: can't determine user device random seed.
> > 
> > Anyone seen this problem and have a fix?
> 
> 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.
> 
> -- 
> 	Dan Nelson
> 	dnelson at allantgroup.com

> 
> --- 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 = 1;
>  /*
>   * Free string copies, as required.
>   */

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

-- 
Jeffrey Lehman
http://digitalguy.net
GPG Key fingerprint = 3087 CED0 57F7 3BD3 14E7  969B EE14 BADA D619 8CF5
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20080109/9f6885fd/attachment.pgp


More information about the freebsd-questions mailing list