mafintosh / tar-stream

tar-stream is a streaming tar parser and generator.
MIT License
400 stars 93 forks source link

Add write support for entries larger 8 GB #141

Closed ususdei closed 1 year ago

ususdei commented 2 years ago

Most programs support an extension for tar which allow to write large integers in binary coded format denoted by a set first bit.

piranna commented 2 years ago

Do you have some references for that?

ususdei commented 2 years ago

Sure:

There reference is here: http://www.gnu.org/software/tar/manual/html_node/Extensions.html#Extensions

Additionally tar-stream can already read this format in decodeOct(). It's also what node-tar does in https://github.com/npm/node-tar/blob/main/lib/large-numbers.js

mafintosh commented 2 years ago

There are some lint errors. I commented on some, Standard should tell you the rest (npm run test)

ususdei commented 2 years ago

Updated. Thanks!

ususdei commented 2 years ago

@mafintosh Any update on this? Did I miss something? I would love to see this upstreamed.

jeff-al commented 1 year ago

Hi @mafintosh, is this solution correct? I think it is a very important change that many of us need

mafintosh commented 1 year ago

landing in 3.1.0