Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Nov 2007 21:13:13 GMT
From:      Oles Hnatkevych <don_oles@able.com.ua>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/118337: lsof does not work when root mounted on cd9660 (livecd)
Message-ID:  <200711292113.lATLDDAh047089@www.freebsd.org>
Resent-Message-ID: <200711292120.lATLK1ci003241@freefall.freebsd.org>

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

>Number:         118337
>Category:       ports
>Synopsis:       lsof does not work when root mounted on cd9660 (livecd)
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Nov 29 21:20:01 UTC 2007
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:



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