Date: Thu, 4 Oct 2001 11:20:02 -0700 (PDT) From: Hiroo ONO (=?iso-2022-jp?B?GyRCPi5MbjQyQDgbKEI=?=) <hiroo@oikumene.gcd.org> To: freebsd-bugs@FreeBSD.org Subject: Re: bin/31009: Installing current snapshot fails at sysintall/install.c:installFilesystems() Message-ID: <200110041820.f94IK2039988@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR bin/31009; it has been noted by GNATS.
From: Hiroo ONO (=?iso-2022-jp?B?GyRCPi5MbjQyQDgbKEI=?=) <hiroo@oikumene.gcd.org>
To: freebsd-gnats-submit@FreeBSD.org
Cc:
Subject: Re: bin/31009: Installing current snapshot fails at
sysintall/install.c:installFilesystems()
Date: Fri, 05 Oct 2001 03:10:39 +0900
----Next_Part(Fri_Oct__5_02:54:40_2001_41)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
I think the patch for lib/libdisk/create_chunk.c below solves the
problem. It checks the devfs MIB exists and return 1 if it exists.
As I failed to install FreeBSD-current due to this bug, I cannot test
if it works :-)
thanks to Masahide -mac- NODA, Hajimu UMEMOTO and Makoto `MAR' MATSUSHITA
for the advice.
----Next_Part(Fri_Oct__5_02:54:40_2001_41)--
Content-Type: Text/Plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="create_chunk.c.diff"
*** create_chunk.c.orig Fri Oct 5 02:07:06 2001
--- create_chunk.c Fri Oct 5 02:31:10 2001
***************
*** 22,27 ****
--- 22,28 ----
#include <sys/diskslice.h>
#include <sys/types.h>
#include <sys/stat.h>
+ #include <sys/sysctl.h>
#include <grp.h>
#include <paths.h>
#include <pwd.h>
***************
*** 283,294 ****
--- 284,303 ----
struct passwd *pwd;
uid_t owner;
gid_t group;
+ int mib[4];
+ size_t miblen;
*buf2 = '\0';
+ miblen = sizeof(mib)/sizeof(mib[0]);
if (isDebug())
msgDebug("MakeDev: Called with %s on path %s\n", p, path);
if (!strcmp(p, "X"))
return 0;
+ if (!sysctlnametomib("vfs.devfs.generation", &mib, &miblen)) {
+ if (isDebug())
+ msgDebug("MakeDev: No need to mknod(2) with DEVFS.\n");
+ return 1;
+ }
if (!strncmp(p, "ad", 2))
cmaj = 116, p += 2;
----Next_Part(Fri_Oct__5_02:54:40_2001_41)----
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200110041820.f94IK2039988>
