Caleb Gardner
de1b18fd1c
Removed squashfs.test
2025-06-07 02:17:39 -05:00
Caleb Gardner
7d1458b3a4
Add memory & cpu profiles to gitignore
2025-06-07 02:09:43 -05:00
Caleb Gardner
b057df9ada
Remove memory profile
2025-06-07 02:09:21 -05:00
Caleb Gardner
e1449da2f0
Fix memory leaks & inefficiencies
2025-06-07 02:07:45 -05:00
Caleb Gardner
ddb81aade0
Rework caching_paged_reader into Table[T]
...
This *should* fix some issues with extraction due to race conditions
2025-06-06 15:46:25 -05:00
Caleb Gardner
b2c8084f41
Minor tweaks
2025-06-06 15:46:25 -05:00
Will Murphy
0905141013
fix: prevent index out of range on long frag tables
...
Previously, reading fragment 512 would panic with index out of range.
Fix that panic by introducing an abstraction over reading blocks of
items, caching the intermediate result, and returning an item at a
particular index. The primary goal of this abstraction is to make edge
cases like requesting items on page boundaries easy to unit test for.
Additionally, fix unit tests by making t.Fatal calls protected by
nil checks on the error values.
2025-06-06 15:46:22 -05:00
Caleb Gardner
81b663b48a
Tested and working
2025-06-06 11:20:42 -05:00
Caleb Gardner
97214ca6ca
Finished readers (theoretically)
2025-06-06 11:05:43 -05:00
Caleb Gardner
968dff82cb
Fixed always showing hardlink info
2025-06-06 11:05:43 -05:00
Caleb Gardner
1f0868fb21
Added -show-hard-links to go-unsquashfs
...
Exposed the underlying squashfslow values for File and FS
2025-06-06 11:05:43 -05:00
Caleb Gardner
f378136299
Added OpenFile to get a *squashfs.File instead of fs.File
...
Added -e to extract only specific files/folders
Only require the filename for -l, -ll, and -lln
2025-06-06 11:05:43 -05:00
Caleb Gardner
3378651686
Re-write data fullreader & reader
...
Moved directory and the rest of the inodes to manual decoding
2025-06-06 06:37:39 -05:00
Caleb Gardner
f32cb520dc
Zstd re-use
2025-04-16 18:02:19 -05:00
Caleb Gardner
f991ddb1d4
Don't ignore permissions in benchmark tests
2025-04-16 16:22:32 -05:00
Caleb Gardner
4c8c9f0b47
Re-use zstd and zlib readers
2025-04-16 05:49:42 -05:00
Caleb Gardner
8a2556ea0d
Remove test file
2025-04-16 05:16:58 -05:00
Caleb Gardner
33156751ca
Merge pull request #39 from CalebQ42/perfExp
...
Performance
v1.2.0
2025-04-10 11:26:24 -05:00
Caleb Gardner
6224c4be41
Further performance improvements
...
Further removed multiple pointer instances
Re-use decompression readers (except zstd due to bugs)
2025-04-10 11:20:55 -05:00
Caleb Gardner
6b0e9ef2c6
Reduce use of binary.Read and, by extention, reflection
2025-04-10 06:26:41 -05:00
Caleb Gardner
4490fc3873
Removed all the pointers
2025-04-10 02:15:24 -05:00
Caleb Gardner
f242de2710
Better disabling of compression types
v1.1.0
2025-03-17 06:53:29 -05:00
Caleb Gardner
88315ee384
Fix build flags
2025-03-17 06:28:31 -05:00
Caleb Gardner
1e2a8f4b75
go mod tidy
2025-03-17 06:22:24 -05:00
Caleb Gardner
863b03fb19
Updated README
2025-03-17 06:21:19 -05:00
Caleb Gardner
d3f84344d1
Fix build flags in lzma.go & xz.go
2025-03-17 06:19:45 -05:00
Caleb Gardner
ad24995b7b
Change no_lzma and no_lzo to no_obsolete and no_gpl
...
Added build tags section to README
2025-03-17 06:16:25 -05:00
Caleb Gardner
638355ab71
Merge pull request #37 from afbjorklund/comp-none
...
Allow disabling lzo and lzma
2025-03-17 05:45:26 -05:00
Anders F Björklund
04d914d403
Allow disabling lzo and lzma
...
By setting the buildtags "no_lzo" and/or "no_lzma",
one can drop the library dependency on lzo and lzma.
The same could be done for xz as well, but there are
still lots of archives using xz compression out there.
2025-03-16 13:56:04 +01:00
Caleb Gardner
7323fe56f6
Merge pull request #35 from afbjorklund/list
...
Add list option to unsquashfs
2025-03-15 15:48:41 -05:00
Caleb Gardner
6286da31e1
Merge branch 'main' into list
2025-03-15 15:48:06 -05:00
Caleb Gardner
77c87a9653
Merge pull request #34 from afbjorklund/unsquashfs-offset
...
Allow mounting with an offset
2025-03-15 15:34:04 -05:00
Anders F Björklund
e6b0b83dcb
Add support for uid/gid
2025-03-15 17:50:02 +01:00
Anders F Björklund
cef9090210
Add support for symlinks
2025-03-15 17:46:02 +01:00
Anders F Björklund
24a9457c6b
Refactor: export FileInfo
2025-03-15 17:35:40 +01:00
Anders F Björklund
e0c1309ed4
Add list option to unsquashfs
2025-03-15 17:32:27 +01:00
Anders F Björklund
8b475b6cc4
Allow mounting with an offset
...
When mounting squashfs images embedded in apptainer image,
using offset means we don't need to use a temporary copy.
2025-03-15 17:26:59 +01:00
Caleb Gardner
3a48a0bcdc
Remove t.Fatal at end of single file test
v1.0.6
2025-03-12 00:11:29 -05:00
Caleb Gardner
f11416493e
Apply FileMode fixes to Inode.Mode()
2025-03-12 00:09:02 -05:00
Caleb Gardner
619bb023b1
Fix missing fileInfo.Mode() types
2025-03-12 00:03:58 -05:00
Caleb Gardner
38e4761d21
Merge pull request #33 from afbjorklund/fileinfo-symlink
...
Properly show symlinks in Mode
2025-03-11 23:51:01 -05:00
Anders F Björklund
06d2ef3056
Properly show symlinks in Mode
...
Previously they were extracted OK (as symlinks), but shown
as regular files with length 0 when getting the file info.
2025-03-11 18:46:31 +01:00
Caleb Gardner
446f29df70
Empty io.Reader buffer on EOF
v1.0.5
2025-03-04 04:33:47 -06:00
Caleb Gardner
d6c8efcfe6
Removed writeToWriteAt
...
Didn't seem to have any performance advantage
2025-03-04 04:08:13 -06:00
Caleb Gardner
d890932d5c
Use WriterAt if it's available for FullReader
2025-02-27 07:19:04 -06:00
Caleb Gardner
87b5ac7f5d
gopls modernize
2025-02-27 02:46:22 -06:00
Caleb Gardner
e9fdd89c67
Merge pull request #31 from willmurphyscode/main
...
fix: remove stray println
v1.0.4
2024-12-10 16:09:45 -06:00
Will Murphy
c80d150fdc
fix: remove stray println
2024-12-10 17:00:57 -05:00
Caleb Gardner
03266d0560
Fix frag, id, inode table values on block boundries
...
Fixes bug mention in #30
v1.0.3
2024-11-26 17:09:39 -06:00
Caleb Gardner
0f8a4e0027
Re-added NewReaderAtOffset
v1.0.2
2024-09-20 20:10:33 -05:00