wcampbell0x2a / backhand

Library and binaries for the reading, creating, and modification of SquashFS file systems
Apache License 2.0
112 stars 10 forks source link

Add hardlink support #553

Open Link1J opened 4 months ago

Link1J commented 4 months ago

I think the title explains it all. My reason for needing hardlinks is simple, I was converting tarballs into SquashFS, and the tarballs have hardlinks.

wcampbell0x2a commented 2 months ago

Could you give more context? Is this for unsquashfs, FilesystemWriter, or FilesystemReader?

Link1J commented 2 months ago

This would be for FilesystemWriter.

I am using this library to write container image layers as squashfs, for being used as part of the rootfs for a container. Currently, I have used symlinks as a replacement, but they could create issues if software expects hard links.