summaryrefslogtreecommitdiff
path: root/lib/sqfs
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sqfs')
-rw-r--r--lib/sqfs/data_writer/block.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/sqfs/data_writer/block.c b/lib/sqfs/data_writer/block.c
index 7c52bb4..01e1387 100644
--- a/lib/sqfs/data_writer/block.c
+++ b/lib/sqfs/data_writer/block.c
@@ -70,6 +70,9 @@ static int allign_file(sqfs_data_writer_t *proc, sqfs_block_t *blk)
if (padding == 0)
return SQFS_ERROR_ALLOC;
+ if (proc->hooks != NULL && proc->hooks->prepare_padding != NULL)
+ proc->hooks->prepare_padding(proc->user_ptr, padding, diff);
+
chksum = crc32(0, padding, diff);
ret = proc->file->write_at(proc->file, size, padding, diff);