From owner-freebsd-bugs Fri Mar 30 11:20:16 2001 Delivered-To: freebsd-bugs@freebsd.org Received: from critter.freebsd.dk (critter.freebsd.dk [212.242.86.163]) by hub.freebsd.org (Postfix) with ESMTP id 8DDC337B718 for ; Fri, 30 Mar 2001 11:19:50 -0800 (PST) (envelope-from phk@critter.freebsd.dk) Received: from critter (localhost [127.0.0.1]) by critter.freebsd.dk (8.11.3/8.11.3) with ESMTP id f2UJJ8P21334; Fri, 30 Mar 2001 21:19:08 +0200 (CEST) (envelope-from phk@critter.freebsd.dk) To: Vladimir Tchoukharev Cc: freebsd-bugs@FreeBSD.ORG Subject: Re: bin/25620: tar does not handle existing large minor numbers In-Reply-To: Your message of "Fri, 30 Mar 2001 22:16:41 +0300." <3AC4DB99.62BFF666@h33.erkki.ton.tut.fi> Date: Fri, 30 Mar 2001 21:19:07 +0200 Message-ID: <21332.985979947@critter> From: Poul-Henning Kamp Sender: owner-freebsd-bugs@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org In message <3AC4DB99.62BFF666@h33.erkki.ton.tut.fi>, Vladimir Tchoukharev write s: >Poul-Henning Kamp wrote: >> >> Send a patch :-) >> > >OK, you asked for it... > >$ diff -u tar.1.orig tar.1 >--- tar.1.orig Fri Mar 30 21:56:26 2001 >+++ tar.1 Fri Mar 30 22:08:33 2001 >@@ -569,4 +569,5 @@ > The tar file format is a semi fixed width field format, and the field > for device numbers were designed for 16 bit (8 major, 8 minor) > and can not absorb our 32 bit (8 major, 16+8 minor) numbers. >+Currently it is extended to support 21-bit minor numbers. Now comes the good question: which 21 bit ? In FreeBSD the minor and major are interleaved: mmmmmmmm mmmmmmmm MMMMMMMM mmmmmmmm I suspect that we only get 13 bits of minors with the 21 bit format: mmmmmmmm mmmmmmmm MMMMMMMM mmmmmmmm -------- ---vvvvv vvvvvvvv vvvvvvvv -- Poul-Henning Kamp | UNIX since Zilog Zeus 3.20 phk@FreeBSD.ORG | TCP/IP since RFC 956 FreeBSD committer | BSD since 4.3-tahoe Never attribute to malice what can adequately be explained by incompetence. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-bugs" in the body of the message