On Wed, 06/10 17:11, Fam Zheng wrote:
On Mon, 06/08 16:53, Paolo Bonzini wrote:
On 08/06/2015 16:17, Eric Blake wrote:
+
+if (detect_zeroes == BLOCKDEV_DETECT_ZEROES_OPTIONS_UNMAP
+!(bdrv_flags BDRV_O_UNMAP)) {
+error_setg(errp, setting detect-zeroes
On Mon, 06/08 16:53, Paolo Bonzini wrote:
On 08/06/2015 16:17, Eric Blake wrote:
+
+if (detect_zeroes == BLOCKDEV_DETECT_ZEROES_OPTIONS_UNMAP
+!(bdrv_flags BDRV_O_UNMAP)) {
+error_setg(errp, setting detect-zeroes to unmap is not allowed
+
On 06/08/2015 04:34 AM, Fam Zheng wrote:
The logic will be shared with qmp_drive_mirror.
s/Extrace/Extract/ in the subject
Signed-off-by: Fam Zheng f...@redhat.com
---
block.c | 26 ++
blockdev.c| 14 ++
include/block/block.h
On 08/06/2015 16:17, Eric Blake wrote:
+
+if (detect_zeroes == BLOCKDEV_DETECT_ZEROES_OPTIONS_UNMAP
+!(bdrv_flags BDRV_O_UNMAP)) {
+error_setg(errp, setting detect-zeroes to unmap is not allowed
+ without setting discard operation to