Re: [PATCH v2 1/3] parallels: Put the image checks in separate functions

2022-08-06 Thread Vladimir Sementsov-Ogievskiy
On 8/5/22 18:47, alexander.iva...@virtuozzo.com wrote: From: Alexander Ivanov A bit strange to see this. Is your name set up correctly in ~/.gitconfig ? We will add more and more checks of images so we need to reorganize the code. Put each check to a separate helper function with a separate

[PATCH v2 1/3] parallels: Put the image checks in separate functions

2022-08-05 Thread alexander . ivanov
From: Alexander Ivanov We will add more and more checks of images so we need to reorganize the code. Put each check to a separate helper function with a separate loop. Add two helpers: truncate_file() and sync_header(). They will be used in multiple functions. Signed-off-by: Alexander Ivanov --