block/blklogwrites: Make sure the log sector size is not too small
authorAri Sundholm <ari@tuxera.com>
Fri, 6 Jul 2018 12:00:38 +0000 (15:00 +0300)
committerKevin Wolf <kwolf@redhat.com>
Tue, 10 Jul 2018 11:17:48 +0000 (13:17 +0200)
commitba814c82bbf0daf053c52dcdf0eb97b1f6ab0970
tree3f80cf07acb7a82ed87340b1a71075a4194b96ce
parent7769eaa57859362a655b3d3a78d20df7774f16cf
block/blklogwrites: Make sure the log sector size is not too small

The sector size needs to be large enough to accommodate the data
structures for the log super block and log write entries. This was
previously not properly checked, which made it possible to cause
QEMU to badly misbehave.

Signed-off-by: Ari Sundholm <ari@tuxera.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/blklogwrites.c