From 2ff34144df4ce521bfb789a61e24a05aea39b220 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Fri, 29 May 2020 19:44:09 +0200 Subject: 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 --- lib/sqfs/block_processor/winpthread.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/sqfs/block_processor/winpthread.c') diff --git a/lib/sqfs/block_processor/winpthread.c b/lib/sqfs/block_processor/winpthread.c index 44c62f1..afd66c1 100644 --- a/lib/sqfs/block_processor/winpthread.c +++ b/lib/sqfs/block_processor/winpthread.c @@ -344,7 +344,8 @@ static int append_to_work_queue(sqfs_block_processor_t *proc, SIGNAL_ALL(&thproc->queue_cond); } } else { - if (!(blk->flags & SQFS_BLK_FRAGMENT_BLOCK)) + if (!(blk->flags & SQFS_BLK_FRAGMENT_BLOCK) || + blk->flags & BLK_FLAG_MANUAL_SUBMISSION) blk->io_seq_num = thproc->io_enq_id++; store_io_block(thproc, blk); } -- cgit v1.2.3