
N_blks = sqfs_calc_n_blks(cpu_to_le64(start_block), + start = start_block / sqfs_ctxt.cur_dev->blksz start = start_block / ctxt.cur_dev->blksz Start_block = get_unaligned_le64(table + table_offset + block * Return -143,11 +137,11 static int sqfs_frag_lookup(u32 inode_fragment_index, + table = malloc_cache_aligned(n_blks * sqfs_ctxt.cur_dev->blksz) table = malloc_cache_aligned(n_blks * ctxt.cur_dev->blksz) * Allocate a proper sized buffer to store the fragment index table */

N_blks = sqfs_calc_n_blks(sblk->fragment_table_start, Start = get_unaligned_le64(&sblk->fragment_table_start) /

U16 header, -118,13 +112,13 static int sqfs_frag_lookup(u32 inode_fragment_index, + struct squashfs_super_block *sblk = sqfs_ctxt.sblk struct squashfs_super_block *sblk = ctxt.sblk Struct squashfs_fragment_block_entry *entries Unsigned char *metadata_buffer, *metadata, *table U64 start, n_blks, src_len, table_offset, start_block + return DIV_ROUND_UP(table_size + *offset, -107,7 +101,7 static int sqfs_frag_lookup(u32 inode_fragment_index, return DIV_ROUND_UP(table_size + *offset, ctxt.cur_dev->blksz) + *offset = le64_to_cpu(start) - (start_ * sqfs_ctxt.cur_dev->blksz) + start_ = le64_to_cpu(start) / sqfs_ctxt.cur_dev->blksz *offset = le64_to_cpu(start) - (start_ * ctxt.cur_dev->blksz) start_ = le64_to_cpu(start) / ctxt.cur_dev->blksz Table_size = le64_to_cpu(end) - le64_to_cpu(start) + *sblk = malloc_cache_aligned(sqfs_ctxt.cur_dev->blksz) *sblk = malloc_cache_aligned(ctxt.cur_dev->blksz) Static int sqfs_read_sblk(struct squashfs_super_block **sblk) If (ret != -49,7 +43,7 static int sqfs_disk_read(_u32 block, _u32 nr_blocks, void *buf) + ret = blk_dread(sqfs_ctxt.cur_dev, sqfs_ctxt.cur_part_info.start + block, ret = blk_dread(ctxt.cur_dev, ctxt.cur_part_info.start + block, Static int sqfs_disk_read(_u32 block, _u32 nr_blocks, void *buf)

#DIV 3 DECOMPRESSOR PATCH#
This patch was not present in the previous version.įs/squashfs/sqfs.c | 87 +++++++++++++++++-įs/squashfs/sqfs_decompressor.c | 36 ++++++++++++-Ĥ files changed, 89 insertions(+), 46 deletions(-)ĭiff -git a/fs/squashfs/sqfs.c b/fs/squashfs/sqfs.c Rename structure in sqfs.c and remove the 'static' so it can be Remove memory leak from sqfs_zstd_decompress() Passed to sqfs_decompressor_init() and sqfs_decompressor_cleanup(), so Move squashfs_ctxt definition to sqfs_filesystem.h. Now, only ZSTD requires an initialization logic. Theseįunctions are called respectively in sqfs_probe() and sqfs_close(). ` (2 subsequent siblings) 3 siblings, 1 reply 8+ messages in threadĪdd sqfs_decompressor_init() and sqfs_decompressor_cleanup(). 14:31 ` fs/squashfs: add support for ZSTD decompression Joao Marcos Costa 14:31 fs/squashfs: Add new decompression algorithms Joao Marcos 14:31 ` Joao Marcos Costa test_fs/test_squashfs/test_sqfs_ls.py | 33 ++++-ħ files changed, 261 insertions(+), 93 deletions(-) and clean-up functions to decompressionįs/squashfs: add support for ZSTD decompressionįs/squashfs: add support for LZO decompressionįs/squashfs/sqfs_decompressor.c | 103 +++++++++++++++++. Add sqfs_decompress_init() and sqfs_decompress_cleanup() to SquashFSįs/squashfs: Add init. Skip compression algorithms unsupported by the host's squashfs-tools

Remove memory leak from sqfs_zstd_decompress().
#DIV 3 DECOMPRESSOR SERIES#
` (3 more replies) 0 siblings, 4 replies 8+ messages in threadįrom: Joao Marcos Costa 14:31 UTC ( / raw)įollowing the SquashFS support, this series adds support for LZO and ZSTD and clean-up functions to decompression Joao Marcos Costa Fs/squashfs: Add new decompression algorithms All of help / color / mirror / Atom feed * fs/squashfs: Add new decompression algorithms 14:31 Joao Marcos Costa
