From owner-freebsd-bugs Thu Oct 4 11:20:14 2001 Delivered-To: freebsd-bugs@hub.freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 6835037B403 for ; Thu, 4 Oct 2001 11:20:02 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id f94IK2039988; Thu, 4 Oct 2001 11:20:02 -0700 (PDT) (envelope-from gnats) Date: Thu, 4 Oct 2001 11:20:02 -0700 (PDT) Message-Id: <200110041820.f94IK2039988@freefall.freebsd.org> To: freebsd-bugs@FreeBSD.org Cc: From: Hiroo ONO (=?iso-2022-jp?B?GyRCPi5MbjQyQDgbKEI=?=) Subject: Re: bin/31009: Installing current snapshot fails at sysintall/install.c:installFilesystems() Reply-To: Hiroo ONO (=?iso-2022-jp?B?GyRCPi5MbjQyQDgbKEI=?=) Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org The following reply was made to PR bin/31009; it has been noted by GNATS. From: Hiroo ONO (=?iso-2022-jp?B?GyRCPi5MbjQyQDgbKEI=?=) 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 #include #include + #include #include #include #include *************** *** 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