Am 23.12.2015 um 08:46 hat Denis V. Lunev geschrieben: > From: Olga Krishtal <okrish...@virtuozzo.com> > > While opening image we save dirty state in header_unclean. > If the image was closed incorrectly we can retrieve this fact > using bdrv_is_opened_unclean callback. > > This is necessary in case when we want to call brdv_check to > repair dirty image. > > Signed-off-by: Olga Krishtal <okrish...@virtuozzo.com> > Signed-off-by: Denis V. Lunev <d...@openvz.org> > CC: Kevin Wolf <kw...@redhat.com> > CC: Max Reitz <mre...@redhat.com> > CC: Eric Blake <ebl...@redhat.com> > CC: Fam Zheng <f...@redhat.com>
What does this fix? qcow2 isn't supposed to require a repair after an unclean shutdown. The only exception is with lazy-refcounts=on, which already sets a dirty flag in the header and triggers the repair in qcow2_open(). Kevin