cryptospore / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone

Blame SOURCES/kvm-qemu-img-fix-rebase-src_cache-option-documentation.patch

958e1b
From 1a7d0d17b3b2aeae3c48895ee60da17e3ee27f32 Mon Sep 17 00:00:00 2001
958e1b
From: Max Reitz <mreitz@redhat.com>
958e1b
Date: Fri, 24 Oct 2014 08:18:00 +0200
958e1b
Subject: [PATCH 12/19] qemu-img: fix rebase src_cache option documentation
958e1b
958e1b
Message-id: <1414138680-19600-5-git-send-email-mreitz@redhat.com>
958e1b
Patchwork-id: 61865
958e1b
O-Subject: [RHEL-7.1 qemu-kvm PATCH v2 4/4] qemu-img: fix rebase src_cache option documentation
958e1b
Bugzilla: 1138691
958e1b
RH-Acked-by: Laszlo Ersek <lersek@redhat.com>
958e1b
RH-Acked-by: Markus Armbruster <armbru@redhat.com>
958e1b
RH-Acked-by: Kevin Wolf <kwolf@redhat.com>
958e1b
958e1b
From: Stefan Hajnoczi <stefanha@redhat.com>
958e1b
958e1b
The src_cache option (-T) specifies the cache mode for backing files.
958e1b
It applies both the image's old backing file as well as the new backing
958e1b
file:
958e1b
958e1b
  ret = bdrv_open(&bs_old_backing, backing_name, NULL, NULL, src_flags,
958e1b
                  old_backing_drv, &local_err);
958e1b
  if (ret) {
958e1b
      ...
958e1b
  }
958e1b
  if (out_baseimg[0]) {
958e1b
      bs_new_backing = bdrv_new("new_backing", &error_abort);
958e1b
      ret = bdrv_open(&bs_new_backing, out_baseimg, NULL, NULL, src_flags,
958e1b
                      new_backing_drv, &local_err);
958e1b
      if (ret) {
958e1b
          ...
958e1b
      }
958e1b
  }
958e1b
958e1b
The documentation only mentions the new backing file but it really
958e1b
applies to both.
958e1b
958e1b
Suggested-by: Jeff Nelson <jenelson@redhat.com>
958e1b
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
958e1b
Reviewed-by: Max Reitz <mreitz@redhat.com>
958e1b
(cherry picked from commit 3ba6796d080a90440573ef29d657e4902be7e238)
958e1b
958e1b
Signed-off-by: Max Reitz <mreitz@redhat.com>
958e1b
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
958e1b
---
958e1b
 qemu-img.texi | 2 +-
958e1b
 1 file changed, 1 insertion(+), 1 deletion(-)
958e1b
958e1b
diff --git a/qemu-img.texi b/qemu-img.texi
958e1b
index 4b7a331..5f99ebb 100644
958e1b
--- a/qemu-img.texi
958e1b
+++ b/qemu-img.texi
958e1b
@@ -314,7 +314,7 @@ string), then the image is rebased onto no backing file (i.e. it will exist
958e1b
 independently of any backing file).
958e1b
 
958e1b
 @var{cache} specifies the cache mode to be used for @var{filename}, whereas
958e1b
-@var{src_cache} specifies the cache mode for reading the new backing file.
958e1b
+@var{src_cache} specifies the cache mode for reading backing files.
958e1b
 
958e1b
 There are two different modes in which @code{rebase} can operate:
958e1b
 @table @option
958e1b
-- 
958e1b
1.8.3.1
958e1b