Coder Social home page Coder Social logo

can not seek in input: Illegal seek about pixz HOT 7 OPEN

vasi avatar vasi commented on July 2, 2024 5
can not seek in input: Illegal seek

from pixz.

Comments (7)

ole-tange avatar ole-tange commented on July 2, 2024 1

This issue blocks pixz to be used as a dropin replacement for gzip (sort --compress-program=pixz / tar --use-compress-program pixz / parallel --compress-program pixz).

from pixz.

ole-tange avatar ole-tange commented on July 2, 2024

Can also be reproduced with:

echo | pixz | pixz -d | wc

from pixz.

wookietreiber avatar wookietreiber commented on July 2, 2024

Thanks for reporting. I am not yet well versed with the internals, @vasi can you shed some light on this?

from pixz.

vasi avatar vasi commented on July 2, 2024

Pixz can decompress fine without an index. The only potential problems I can think of are:

  • Some tools might create pixz files with multiple blocks, where the blocks headers don't include a size. In that case, pixz won't be able to do parallel decompression, things will slow down.
  • Someone might try to use the "-x" option to pixz, to filter the list of files. That won't work if there's no index.

We should probably turn this message into a warning?

from pixz.

wookietreiber avatar wookietreiber commented on July 2, 2024

I guess, we could implement a switch that checks early if we are working with a stream or a plain file, then branch off to one section that handles streams and one that handles files. This way, we can capture what capabilities are possible and issue warnings/errors appropriately depending on what the user wants.

from pixz.

mgheorghe avatar mgheorghe commented on July 2, 2024

any update on this ?
i'm keep getting
partclone.c,open_target,1611: open /dev/sda1 error(17)

from pixz.

jorismak avatar jorismak commented on July 2, 2024

Maybe I'm missing how this is supposed to be used,
But i did pixz backup.tar backup.tpxz and it compressed the raw tarball.
If I do pixz -l backup.tpxz I get a fast and nice listing of all the files in the tarball.
But if I do pixz -x /some/file/from/listing backup.tpxz I get this same message 'illegal seek' and it appears to just sit there doing nothing? (Or it takes a long time because the entire archive has to be decompressed anyway because of the illegal seek?).

If I managed to create a tpxz file without an index

  • How do I create one with an index?
  • Why is the file listing so quick?

EDIT: Found it, I had my -x command line wrong. You need to pipe in the .tpxz file with -x, and it outputs a little blob of tar you need to feed into a tar xpP style commandline.

from pixz.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.