11 Commits

Author SHA1 Message Date
Timmy Welch
fbdcde6baf Add trivial xattr support to squashfs
Some checks failed
Push / CI (push) Has been cancelled
This is only implemented to support capabilities on installed packages
2025-12-28 14:20:18 -08:00
Olivier Mengué
e2973fe9fb squashfs: allow to compile on Windows (#22)
Drop use of golang.org/x/sys/unix which is dependent on GOOS and doesn't
expose the Unix file mode constants on Windows. Instead use hard coded
constants which is fine (and safer) to create a squashfs image.
2025-02-14 21:29:42 +01:00
Michael Stapelberg
d964fb95b0 document result of zstd experiment: not worth the trouble here 2022-09-18 22:19:49 +02:00
Michael Stapelberg
ccf5171e9f squashfs: use zlib.BestSpeed
This reduces the time to generate images for my largest gokrazy installation
from 3.5s to 1.6s, while only increasing the file size from 32M to 36M.
2018-06-21 19:22:43 +02:00
Michael Stapelberg
80f452e9c9 squashfs: write ldirInodeHeaders for large directories
The dirInodeHeader type only uses a uint16 for the size of the directory
entries, which is sometimes not sufficient (and before this change would
overflow, resulting in directories which seemed to miss files).
2018-06-20 23:45:44 +02:00
Michael Stapelberg
e220cec663 squashfs: use correct offset for writing parent inode 2018-06-19 08:41:35 +02:00
Michael Stapelberg
ff98b2beb2 squashfs: fall back to uncompressed blocks for Linux compatibility 2018-06-19 08:41:25 +02:00
Michael Stapelberg
59a20ece5c squashfs: fix compressed block flushing of larger files 2018-06-10 14:04:25 +02:00
Michael Stapelberg
8c59fbd82f squashfs: fix file size calculation when using more than one block 2018-06-10 14:03:07 +02:00
Michael Stapelberg
ab3bfa03ae squashfs: turns out inode blocks are offsets (e.g. 8194), not block numbers 2018-06-10 14:02:13 +02:00
Michael Stapelberg
32d3607ae8 Add a SquashFS writer 2018-06-10 13:57:34 +02:00