containers / composefs

The reliability of disk images, the flexibility of files
Other
462 stars 37 forks source link

dumpfile: Add some test code to convert to tar #328

Closed cgwalters closed 2 months ago

cgwalters commented 2 months ago

Add code to go from dumpfile -> tar (notably, ignoring non-inline regular file content). This is testing only code right now, though clearly mapping to/from tar would be very useful in general. I plan to use this code for various testing purposes especially to manually create tarballs from various dumpfiles to e.g. feed directly to mkfs.erofs for example.

But we at least get some sanity checking this way.

cgwalters commented 2 months ago

Good catch, I had to upgrade from 1.80 -> 1.81 to get that new clippy check. Also the way it rewrote with "a".repeat() is way nicer.