bug-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-tar] Proposed enhancements to "Sparse format 1.0"


From: Tim Kientzle
Subject: Re: [Bug-tar] Proposed enhancements to "Sparse format 1.0"
Date: Mon, 13 Aug 2007 09:02:46 -0700
User-agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.12) Gecko/20060422

Sergey Poznyakoff wrote:
Tim Kientzle <address@hidden> ha escrit:

[I] ... have a couple of suggestions
you might consider if you ever create a format 1.1:

  * Include a format specifier ("magic number")
in the prepended block description.  ...

   #!gnu_sparse_file
   #format=1.1

It is possible. But this information is already stored in PAX variables
`GNU.sparse.major' and `GNU.sparse.minor'. Why it is necessary to
duplicate it?

Because you cannot assume those PAX variables are
available to a post-processing program.

Yes, POSIX does require that compliant tar and pax
implementations store "unrecognized" file types as
plain files.  But a program that *does* support the
'x' file type is under no obligation to store the
GNU.sparse.major/minor values on disk.

It is also generally polite to try to ensure that
any new file format you invent can be eventually
identified with standard tools such as "file."

Cheers,

Tim Kientzle




reply via email to

[Prev in Thread] Current Thread [Next in Thread]