Re: [PATCH v3 1/6] block-jobs: flush target at the end of .run()

2021-03-11 Thread Max Reitz
On 05.03.21 18:35, Vladimir Sementsov-Ogievskiy wrote: We are going to implement compressed write cache to improve performance of compressed backup when target is opened in O_DIRECT mode. We definitely want to flush the cache at backup finish, and if flush fails it should be reported as block-job

[PATCH v3 1/6] block-jobs: flush target at the end of .run()

2021-03-05 Thread Vladimir Sementsov-Ogievskiy
We are going to implement compressed write cache to improve performance of compressed backup when target is opened in O_DIRECT mode. We definitely want to flush the cache at backup finish, and if flush fails it should be reported as block-job failure, not simply ignored in bdrv_close(). So, teach a