aboutsummaryrefslogtreecommitdiff
path: root/lib/sqfs/block_processor/common.c
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2020-05-29 19:44:09 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2020-05-29 19:56:59 +0200
commit2ff34144df4ce521bfb789a61e24a05aea39b220 (patch)
tree54c7c1818d758de90e4c34c8f9b9c39ea301824b /lib/sqfs/block_processor/common.c
parent577aae140e05f2b7cd140926443517260c0132b7 (diff)
Block processor: Add a raw block submission function
This function allows submission of raw blocks to the block processor, completely bypassing the file API. 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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/sqfs/block_processor/common.c b/lib/sqfs/block_processor/common.c
index b40ec0f..887a101 100644
--- a/lib/sqfs/block_processor/common.c
+++ b/lib/sqfs/block_processor/common.c
@@ -70,7 +70,8 @@ static int process_completed_block(sqfs_block_processor_t *proc,
int err;
err = proc->wr->write_data_block(proc->wr, blk->user, blk->size,
- blk->checksum, blk->flags,
+ blk->checksum,
+ blk->flags & ~BLK_FLAG_INTERNAL,
blk->data, &location);
if (err)
goto out;