diff options
author | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2020-05-29 18:20:58 +0200 |
---|---|---|
committer | David Oberhollenzer <david.oberhollenzer@sigma-star.at> | 2020-05-29 18:24:25 +0200 |
commit | 50b901d5ebdad40227de66cd5a0a0f62548f1563 (patch) | |
tree | 167e0da994a64a59164099b5d01b1e8aea8a5f66 /lib/sqfs/block_processor/common.c | |
parent | cada7ca7d9386e68c38fc504c01bd2cac33dac44 (diff) |
Support associating a user pointer with data blocks
This commit modifies the block processor to support associating a user
data pointer with data blocks that it forwards to the block writer,
which is modified to accept an optional user data pointer.
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/sqfs/block_processor/common.c')
-rw-r--r-- | lib/sqfs/block_processor/common.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/sqfs/block_processor/common.c b/lib/sqfs/block_processor/common.c index 6a62d4f..bfcc3d5 100644 --- a/lib/sqfs/block_processor/common.c +++ b/lib/sqfs/block_processor/common.c @@ -69,8 +69,9 @@ static int process_completed_block(sqfs_block_processor_t *proc, sqfs_u32 size; int err; - err = proc->wr->write_data_block(proc->wr, blk->size, blk->checksum, - blk->flags, blk->data, &location); + err = proc->wr->write_data_block(proc->wr, blk->user, blk->size, + blk->checksum, blk->flags, + blk->data, &location); if (err) goto out; |