ports/118337: lsof does not work when root mounted on cd9660 (livecd)
Oles Hnatkevych
don_oles at able.com.ua
Thu Nov 29 21:20:01 UTC 2007
>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 at 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:
More information about the freebsd-ports-bugs
mailing list