From nobody@FreeBSD.org  Thu Nov 29 21:13:24 2007
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 6786F16A418
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 29 Nov 2007 21:13:24 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21])
	by mx1.freebsd.org (Postfix) with ESMTP id 54BD113C4CC
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 29 Nov 2007 21:13:24 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.14.2/8.14.2) with ESMTP id lATLDDqu047090
	for <freebsd-gnats-submit@FreeBSD.org>; Thu, 29 Nov 2007 21:13:13 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.14.2/8.14.1/Submit) id lATLDDAh047089;
	Thu, 29 Nov 2007 21:13:13 GMT
	(envelope-from nobody)
Message-Id: <200711292113.lATLDDAh047089@www.freebsd.org>
Date: Thu, 29 Nov 2007 21:13:13 GMT
From: Oles Hnatkevych <don_oles@able.com.ua>
To: freebsd-gnats-submit@FreeBSD.org
Subject: lsof does not work when root mounted on cd9660 (livecd)
X-Send-Pr-Version: www-3.1
X-GNATS-Notify: ler@lerctr.org

>Number:         118337
>Category:       ports
>Synopsis:       sysutils/lsof does not work when root mounted on cd9660 (livecd)
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    wxs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Nov 29 21:20:01 UTC 2007
>Closed-Date:    Thu Jan 24 18:16:22 UTC 2008
>Last-Modified:  Thu Jan 24 18:20:03 UTC 2008
>Originator:     Oles Hnatkevych
>Release:        6.3
>Organization:
>Environment:
FreeBSD murzik.oles.net 6.3-PRERELEASE FreeBSD 6.3-PRERELEASE #2: Wed Nov 28 08:29:27 EET 2007     root@murzik.oles.net:/usr/obj/usr/src/sys/MURZIK  i386

>Description:
lsof when run from livecd (FreeBSD just on disk with almost everying in /) does not work, telling 
lsof: can't determine user device random seed.
The workaround is the same as for NFS mounted root. Do not have any idea what happens there, but with the patch it works.
>How-To-Repeat:

>Fix:
--- dialects/freebsd/dmnt.c.orig        2007-11-29 22:45:16.000000000 +0200
+++ dialects/freebsd/dmnt.c     2007-11-29 22:45:51.000000000 +0200
@@ -162,7 +162,7 @@
             * an NFS mount.  If it does, set the user device number seed to
             * zero.
             */
-               if ((cp = strrchr(ln, ':')) && (*(cp + 1) == '/')) {
+               if ((cp = strrchr(ln, ':')) && (*(cp + 1) == '/')  || !strcasecmp(mb->f_fstypename, "cd9660") ) {
                    ss = 1;
                    s = (u_int)0;
                }


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: edwin 
State-Changed-When: Thu Nov 29 21:40:07 UTC 2007 
State-Changed-Why:  
Awaiting maintainers feedback (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=118337 

From: "Larry Rosenman" <ler@lerctr.org>
To: <bug-followup@FreeBSD.org>,
	<don_oles@able.com.ua>
Cc:  
Subject: Re: ports/118337: lsof does not work when root mounted on cd9660 (livecd)
Date: Thu, 29 Nov 2007 15:46:35 -0600

 I've sent a note to the Author.  Awaiting his reply.
 
 LER
 
 -- 
 Larry Rosenman                     http://www.lerctr.org/~ler
 Phone: +1 512-248-2683                E-Mail: ler@lerctr.org
 US Mail: 430 Valona Loop, Round Rock, TX 78681-3893
 
 
 
Responsible-Changed-From-To: freebsd-ports-bugs->wxs 
Responsible-Changed-By: wxs 
Responsible-Changed-When: Sat Jan 5 12:48:39 UTC 2008 
Responsible-Changed-Why:  
I will work the the maintainer to get the upcoming version into the tree. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=118337 
State-Changed-From-To: feedback->closed 
State-Changed-By: wxs 
State-Changed-When: Thu Jan 24 18:15:57 UTC 2008 
State-Changed-Why:  
New version of lsof committed to address this. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=118337 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/118337: commit references a PR
Date: Thu, 24 Jan 2008 18:14:37 +0000 (UTC)

 wxs         2008-01-24 18:14:31 UTC
 
   FreeBSD ports repository
 
   Modified files:
     sysutils/lsof        Makefile distinfo 
   Log:
   Update to 4.79H.  Adds ZFS support and better handling of cd9660
   support.
   
   PR:             ports/119041[1], ports/118337[2]
   Submitted by:   Gu xianjie <kevinxlinuz@163.com>[1]
                   Oles Hnatkevych <don_oles@able.com.ua>[2]
   Approved by:    Larry Rosenman (maintainer), garga (mentor)
   
   Revision  Changes    Path
   1.157     +2 -2      ports/sysutils/lsof/Makefile
   1.126     +3 -3      ports/sysutils/lsof/distinfo
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
