Reader will now check BlockLog

This commit is contained in:
Caleb Gardner
2021-01-20 14:10:14 -06:00
parent 8dba30e24f
commit dd08d3516d
4 changed files with 14 additions and 22 deletions
+4 -3
View File
@@ -13,7 +13,7 @@ import (
"github.com/CalebQ42/squashfs/internal/compression"
)
//Writer is used to creaste squashfs archives. Currently unusable
//Writer is used to creaste squashfs archives. Currently unusable.
//TODO: Make usable
type Writer struct {
compressor compression.Compressor
@@ -21,8 +21,9 @@ type Writer struct {
symlinkTable map[string]string //[oldpath]newpath
uidGUIDTable []int
compressionType int
//BlockSize is how large the data blocks are. Can be between 4096 (4KB) and 1048576 (1 MB). Default is 1048576.
//If BlockSize is not inside that range, it will be set to within the range before writing
//BlockSize is how large the data blocks are. Can be between 4096 (4KB) and 1048576 (1 MB).
//If BlockSize is not inside that range, it will be set to within the range before writing.
//Default is 1048576.
BlockSize uint32
//Flags are the SuperblockFlags used when writing the archive.
//Currently Duplicates, Exportable, UncompressedXattr, NoXattr values are ignored