summaryrefslogtreecommitdiff
path: root/lib/sqfshelper
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-09-23 16:12:52 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-09-23 16:13:41 +0200
commit41d33212c94d3f9efd43e0c40dd166c2136512a8 (patch)
tree7880fc3e295f261df0a51939c3733d3e2ffbb107 /lib/sqfshelper
parentb86cbb04c9cc72506783e175e871338b1f0e6750 (diff)
Cleanup block processor flag handling
First, remove the "Don't checksum" flag, fragment blocks also need to be checksumed and are also subject to deduplication. For sentinel blocks, instead check if the size is zero. Second, cleanly seperate the user settable flags from the non-user settable flags and reject any block that has non-user settable or unknown flags set. Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'lib/sqfshelper')
-rw-r--r--lib/sqfshelper/data_writer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sqfshelper/data_writer.c b/lib/sqfshelper/data_writer.c
index f5e22f3..3163c4e 100644
--- a/lib/sqfshelper/data_writer.c
+++ b/lib/sqfshelper/data_writer.c
@@ -151,7 +151,7 @@ static int add_sentinel_block(data_writer_t *data, sqfs_inode_generic_t *inode,
}
blk->inode = inode;
- blk->flags = SQFS_BLK_DONT_COMPRESS | SQFS_BLK_DONT_CHECKSUM | flags;
+ blk->flags = flags;
return sqfs_block_processor_enqueue(data->proc, blk);
}