Page MenuHomeSolus

Update squashfs-tools to 4.5
ClosedPublic

Authored by YakoYakoYokuYoku on Fri, Sep 3, 2:24 PM.

Details

Summary

Changelog:

  • mksquashfs now supports "Actions". These are modelled on find and allow compression, fragment packing, file exclusion and file attributes to be changed.
  • New sqfstar command which will create a Squashfs image from a tar archive.
  • Tar style handling of source pathnames in mksquashfs.
  • Cpio style handling of source pathnames in mksquashfs.
  • New option to throttle the amount of CPU and I/O.
  • New Pseudo file definitions which support timestamps.
  • New Pseudo file definitions to create File references.
  • New Pseudo file definitions to create Sockets/Fifos.
  • mksquashfs now allows no source directory to be specified.
  • New Pseudo file R definition which allows a Regular file to be created with data stored within the Pseudo file.
  • Sqfscat command which outputs files to stdout.
  • Symbolic links are now followed in extract files (using -follow-symlinks or -missing-symlinks).
  • unsquashfs now supports "exclude" files.
  • Max depth traversal option added.
  • unsquashfs can now output a "Pseudo file" representing the input Squashfs filesystem.
  • The progress bar is now displayed and updated whilst the input is being scanned.
  • New -one-file-system option in mksquashfs.
  • New -no-hardlinks option in mksquashfs.
  • New -help options in mksquashfs and unsquashfs which output to standard out.
  • New -root-uid option in mksquashfs.
  • New -root-gid option in mksquashfs.
  • New -root-time option in mksquashfs.
  • New -no-exit-code option added to unsquashfs which makes it not output an error exit code.
  • Exit code in unsquashfs changed to distinguish between non-fatal errors (exit 2), and fatal errors (exit 1).
  • mksquashfs when appending, now writes the recovery file to the home directory, rather than the current directory.
  • New -recovery-path <name> option.
  • Xattr id count added in unsquashfs -stat output.
  • unsquashfs "write outside directory" exploit fixed.
  • Error handling in unsquashfs writer thread fixed.
  • Fix failure to truncate destination if appending aborted.
  • Prevent mksquashfs reading the destination file.

Signed-off-by: Martin Reboredo <yakoyoku@gmail.com>

Test Plan

Appended files to my dbginfo squashfs, unsquashed it, squashed it again and mounted it.

Diff Detail

Repository
R2957 squashfs-tools
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

YakoYakoYokuYoku requested review of this revision.Fri, Sep 3, 2:24 PM

Symlink both sqfstar and sqfscat.

JoshStrobl accepted this revision.Mon, Sep 6, 10:32 AM
JoshStrobl added a subscriber: JoshStrobl.

LGTM, thanks!

This revision is now accepted and ready to land.Mon, Sep 6, 10:32 AM
This revision was automatically updated to reflect the committed changes.