17.06.2020 00:29, Denis V. Lunev wrote:
if (ret < 0) { return ret; }...attempting it here, at which point it looks like the only reason you need ret2 is to preserve ret long enough...no, I would like to be sure that intermediate state is always cleared at the end. In the next patch I am going to put intermediate buffer to BlockDriverState and thus it has to be removed in any case.May be flush would be a bad name... clean or finalize?
finalize sounds good for me -- Best regards, Vladimir