Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Mar 2001 21:19:07 +0200
From:      Poul-Henning Kamp <phk@critter.freebsd.dk>
To:        Vladimir Tchoukharev <chu@h33.erkki.ton.tut.fi>
Cc:        freebsd-bugs@FreeBSD.ORG
Subject:   Re: bin/25620: tar does not handle existing large minor numbers 
Message-ID:  <21332.985979947@critter>
In-Reply-To: Your message of "Fri, 30 Mar 2001 22:16:41 %2B0300." <3AC4DB99.62BFF666@h33.erkki.ton.tut.fi> 

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?21332.985979947>