Set block size when opening an existing patch

master
Vitaliy Filippov 2014-01-15 15:32:27 +00:00
parent 3df64ee3c1
commit b0009b6440
1 changed files with 6 additions and 0 deletions

View File

@ -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;