diff options
author | Stefan Hajnoczi | 2014-09-02 12:01:03 +0200 |
---|---|---|
committer | Stefan Hajnoczi | 2014-09-08 12:12:43 +0200 |
commit | 3ba6796d080a90440573ef29d657e4902be7e238 (patch) | |
tree | 8e49642e402422ed27be414cf482e63552022975 | |
parent | qemu-img: clarify src_cache option documentation (diff) | |
download | qemu-3ba6796d080a90440573ef29d657e4902be7e238.tar.gz qemu-3ba6796d080a90440573ef29d657e4902be7e238.tar.xz qemu-3ba6796d080a90440573ef29d657e4902be7e238.zip |
qemu-img: fix rebase src_cache option documentation
The src_cache option (-T) specifies the cache mode for backing files.
It applies both the image's old backing file as well as the new backing
file:
ret = bdrv_open(&bs_old_backing, backing_name, NULL, NULL, src_flags,
old_backing_drv, &local_err);
if (ret) {
...
}
if (out_baseimg[0]) {
bs_new_backing = bdrv_new("new_backing", &error_abort);
ret = bdrv_open(&bs_new_backing, out_baseimg, NULL, NULL, src_flags,
new_backing_drv, &local_err);
if (ret) {
...
}
}
The documentation only mentions the new backing file but it really
applies to both.
Suggested-by: Jeff Nelson <jenelson@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
-rw-r--r-- | qemu-img.texi | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qemu-img.texi b/qemu-img.texi index 4380d56889..cc4668e64f 100644 --- a/qemu-img.texi +++ b/qemu-img.texi @@ -341,7 +341,7 @@ string), then the image is rebased onto no backing file (i.e. it will exist independently of any backing file). @var{cache} specifies the cache mode to be used for @var{filename}, whereas -@var{src_cache} specifies the cache mode for reading the new backing file. +@var{src_cache} specifies the cache mode for reading backing files. There are two different modes in which @code{rebase} can operate: @table @option |