News for hackers. Stuff that matters.
Re:Xz format inadequate for long-term archiving by saurik on Saturday October 22, 2016 @12:30PM (#12769320)
You are confused. xz does not provide the ability to find individual files inside of the format: it is not at all comparable to zip files, and like the other formats mentioned it compresses one file. The "seekable" property is that it lets you somewhat efficiently decompress arbitrary byte ranges inside of the file, which is why a compressed disk image (as used by your parent commenter) benefits from this property but the industry-standard usage of compressing a tar file (which is a file format which inherently makes it impossible to find individual files without reading the whole thing) totally throws away this benefit.
Re:Xz format inadequate for long-term archiving by yuubi on Saturday October 22, 2016 @03:51PM (#12770296)
A tar file doesn't have a central directory like a zip, so you do have to search all the file headers. However, each file header contains the length of the file it describes, which lets you seek past the content of any files you don't care about if the tar isn't stored in a way that would prevent seeking.
Re:Xz format inadequate for long-term archiving by Skunkleton on Saturday October 22, 2016 @06:10PM (#12770798)
That would work if your tar was uncompressed. The lengths in the tar are meaningless in a compressed file.
Re:Xz format inadequate for long-term archiving by shawnz on Saturday October 22, 2016 @10:03PM (#12771489)
That's not true, xz allows efficient decompression of arbitrary byte ranges inside the file.
Re:Xz format inadequate for long-term archiving by Skunkleton on Friday October 28, 2016 @12:08PM (#12817497)
Does it let you seek by a decompressed byte count, or or does it let you decode arbitrary compressed byte ranges?
Re:Xz format inadequate for long-term archiving by joosters on Saturday October 22, 2016 @12:42PM (#12769371)
Really? I thought that's what the page was telling me when it said .xz was a container format. In that case, its file format is extra odd!
Re:Xz format inadequate for long-term archiving by saurik on Saturday October 22, 2016 @01:48PM (#12769694)
Yeah: what they mean by "container format" here is similar to the usage in video compression file formats, where ".avi" doesn't imply any particular compression algorithms. An xz file is a container format which is designed for use to store another container format.