From b0009b6440d307390c7a72c04da905ff6c169982 Mon Sep 17 00:00:00 2001 From: Vitaliy Filippov Date: Wed, 15 Jan 2014 15:32:27 +0000 Subject: [PATCH] Set block size when opening an existing patch --- patch_io.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/patch_io.c b/patch_io.c index c7a6482..de8fab9 100644 --- a/patch_io.c +++ b/patch_io.c @@ -139,6 +139,12 @@ static errcode_t patch_open(const char *name, int flags, io_channel *channel) retval = ext2fs_patch_open(&data->patch, patch_file, O_CREAT); if (retval) goto cleanup; + if (data->patch.block_size) + { + retval = io_channel_set_blksize(data->real, data->patch.block_size); + if (retval) + goto cleanup; + } } *channel = io;