Blame SOURCES/kvm-blockjob-Improve-BlockJobInfo.offset-len-documentati.patch

357786
From 1dca4e49145a339e84b7cdc2a9b226f0a3afe502 Mon Sep 17 00:00:00 2001
357786
From: Kevin Wolf <kwolf@redhat.com>
357786
Date: Tue, 26 Jun 2018 09:47:58 +0200
357786
Subject: [PATCH 29/89] blockjob: Improve BlockJobInfo.offset/len documentation
357786
357786
RH-Author: Kevin Wolf <kwolf@redhat.com>
357786
Message-id: <20180626094856.6924-16-kwolf@redhat.com>
357786
Patchwork-id: 81087
357786
O-Subject: [RHV-7.6 qemu-kvm-rhev PATCH v2 15/73] blockjob: Improve BlockJobInfo.offset/len documentation
357786
Bugzilla: 1513543
357786
RH-Acked-by: Jeffrey Cody <jcody@redhat.com>
357786
RH-Acked-by: Max Reitz <mreitz@redhat.com>
357786
RH-Acked-by: Fam Zheng <famz@redhat.com>
357786
357786
Clarify that len is just an estimation of the end value of offset, and
357786
that offset increases monotonically while len can change arbitrarily.
357786
357786
While touching the documentation of offset, move it directly after len
357786
to match the order of the declaration below.
357786
357786
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
357786
Reviewed-by: Eric Blake <eblake@redhat.com>
357786
Reviewed-by: John Snow <jsnow@redhat.com>
357786
(cherry picked from commit a81e0a825e3b89039a427bca037112f461b95fec)
357786
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
357786
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
357786
---
357786
 qapi/block-core.json | 9 ++++++---
357786
 1 file changed, 6 insertions(+), 3 deletions(-)
357786
357786
diff --git a/qapi/block-core.json b/qapi/block-core.json
357786
index d24c12b..1f6d4bb 100644
357786
--- a/qapi/block-core.json
357786
+++ b/qapi/block-core.json
357786
@@ -1148,7 +1148,12 @@
357786
 # @device: The job identifier. Originally the device name but other
357786
 #          values are allowed since QEMU 2.7
357786
 #
357786
-# @len: the maximum progress value
357786
+# @len: Estimated @offset value at the completion of the job. This value can
357786
+#       arbitrarily change while the job is running, in both directions.
357786
+#
357786
+# @offset: Progress made until now. The unit is arbitrary and the value can
357786
+#          only meaningfully be used for the ratio of @offset to @len. The
357786
+#          value is monotonically increasing.
357786
 #
357786
 # @busy: false if the job is known to be in a quiescent state, with
357786
 #        no pending I/O.  Since 1.3.
357786
@@ -1156,8 +1161,6 @@
357786
 # @paused: whether the job is paused or, if @busy is true, will
357786
 #          pause itself as soon as possible.  Since 1.3.
357786
 #
357786
-# @offset: the current progress value
357786
-#
357786
 # @speed: the rate limit, bytes per second
357786
 #
357786
 # @io-status: the status of the job (since 1.3)
357786
-- 
357786
1.8.3.1
357786