Blame SOURCES/kvm-qemu-img-Clarify-about-relative-backing-file-options.patch

4a2fec
From 8da92a8a73295fe3239124d26507c5cf0276ddab Mon Sep 17 00:00:00 2001
4a2fec
From: Fam Zheng <famz@redhat.com>
4a2fec
Date: Tue, 12 Dec 2017 02:19:20 +0100
4a2fec
Subject: [PATCH 3/6] qemu-img: Clarify about relative backing file options
4a2fec
4a2fec
RH-Author: Fam Zheng <famz@redhat.com>
4a2fec
Message-id: <20171212021920.25231-1-famz@redhat.com>
4a2fec
Patchwork-id: 78306
4a2fec
O-Subject: [RHV7.5 qemu-kvm-rhev PATCH] qemu-img: Clarify about relative backing file options
4a2fec
Bugzilla: 1451269
4a2fec
RH-Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
4a2fec
RH-Acked-by: Peter Xu <peterx@redhat.com>
4a2fec
RH-Acked-by: Jeffrey Cody <jcody@redhat.com>
4a2fec
4a2fec
It's not too surprising when a user specifies the backing file relative
4a2fec
to the current working directory instead of the top layer image. This
4a2fec
causes error when they differ. Though the error message has enough
4a2fec
information to infer the fact about the misunderstanding, it is better
4a2fec
if we document this explicitly, so that users don't have to learn from
4a2fec
mistakes.
4a2fec
4a2fec
Signed-off-by: Fam Zheng <famz@redhat.com>
4a2fec
Reviewed-by: Eric Blake <eblake@redhat.com>
4a2fec
Reviewed-by: Jeff Cody <jcody@redhat.com>
4a2fec
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
4a2fec
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
4a2fec
(cherry picked from commit a16efd53406bc8d89f87253ab10290f8d1b145a7)
4a2fec
Signed-off-by: Fam Zheng <famz@redhat.com>
4a2fec
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
4a2fec
---
4a2fec
 qemu-img.texi | 9 +++++++++
4a2fec
 1 file changed, 9 insertions(+)
4a2fec
4a2fec
diff --git a/qemu-img.texi b/qemu-img.texi
4a2fec
index 72dabd6..90c7eab 100644
4a2fec
--- a/qemu-img.texi
4a2fec
+++ b/qemu-img.texi
4a2fec
@@ -244,6 +244,9 @@ only the differences from @var{backing_file}. No size needs to be specified in
4a2fec
 this case. @var{backing_file} will never be modified unless you use the
4a2fec
 @code{commit} monitor command (or qemu-img commit).
4a2fec
 
4a2fec
+If a relative path name is given, the backing file is looked up relative to
4a2fec
+the directory containing @var{filename}.
4a2fec
+
4a2fec
 Note that a given backing file will be opened to check that it is valid. Use
4a2fec
 the @code{-u} option to enable unsafe backing file mode, which means that the
4a2fec
 image will be created even if the associated backing file cannot be opened. A
4a2fec
@@ -343,6 +346,9 @@ created as a copy on write image of the specified base image; the
4a2fec
 @var{backing_file} should have the same content as the input's base image,
4a2fec
 however the path, image format, etc may differ.
4a2fec
 
4a2fec
+If a relative path name is given, the backing file is looked up relative to
4a2fec
+the directory containing @var{output_filename}.
4a2fec
+
4a2fec
 If the @code{-n} option is specified, the target volume creation will be
4a2fec
 skipped. This is useful for formats such as @code{rbd} if the target
4a2fec
 volume has already been created with site specific options that cannot
4a2fec
@@ -490,6 +496,9 @@ The backing file is changed to @var{backing_file} and (if the image format of
4a2fec
 string), then the image is rebased onto no backing file (i.e. it will exist
4a2fec
 independently of any backing file).
4a2fec
 
4a2fec
+If a relative path name is given, the backing file is looked up relative to
4a2fec
+the directory containing @var{filename}.
4a2fec
+
4a2fec
 @var{cache} specifies the cache mode to be used for @var{filename}, whereas
4a2fec
 @var{src_cache} specifies the cache mode for reading backing files.
4a2fec
 
4a2fec
-- 
4a2fec
1.8.3.1
4a2fec