From owner-freebsd-current Thu Jul 20 02:57:36 1995 Return-Path: current-owner Received: (from majordom@localhost) by freefall.cdrom.com (8.6.11/8.6.6) id CAA01270 for current-outgoing; Thu, 20 Jul 1995 02:57:36 -0700 Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.34]) by freefall.cdrom.com (8.6.11/8.6.6) with ESMTP id CAA01262 for ; Thu, 20 Jul 1995 02:57:00 -0700 Received: (from bde@localhost) by godzilla.zeta.org.au (8.6.9/8.6.9) id TAA20979; Thu, 20 Jul 1995 19:55:07 +1000 Date: Thu, 20 Jul 1995 19:55:07 +1000 From: Bruce Evans Message-Id: <199507200955.TAA20979@godzilla.zeta.org.au> To: current@freefall.cdrom.com, jkh@time.cdrom.com Subject: Re: Hmmmm! New error encountered with cpio while building root.flp Sender: current-owner@FreeBSD.org Precedence: bulk >cpio: stand/date not dumped: minor number would be truncated >cpio: stand/dd not dumped: minor number would be truncated >And so on. It results in a root.flp image that's only 512 bytes long.. :-( >Building the root.flp in /usr/src/release/Makefile *used* to work, but cpio (and tar) now check for minor numbers that would be truncated. pax now uses the correct macro for minor() so its existing check works. The check is only done for st_rdev, not for st_dev. st_rdev is meaningless for regular files. Unfortunately, st_rdev is apparently a garbage value for regular files, and cpio apparently attempts to copy it. I'm not sure what tar does. pax zeros it except for special files, at least for tar format. You should be using a cpio format that preserves all minor numbers, e.g., `cpio -H newc'. Bruce