]> xenbits.xensource.com Git - libvirt.git/commitdiff
doc: Document that snapshot name of block-backed disk isn't autogenerated
authorPeter Krempa <pkrempa@redhat.com>
Fri, 11 Jul 2014 08:20:33 +0000 (10:20 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 14 Jul 2014 07:26:26 +0000 (09:26 +0200)
Libvirt generates external snapshot target file names for file backed
storage but not for block backed storage. Document the limitation.

Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1032363

docs/formatsnapshot.html.in
tools/virsh.pod

index 1f9a6c68cf04d7ec63bd4a0a50181ddf9a781c21..4f7b7b244549d9f211e5b0f50cdd2824bc133066 100644 (file)
             attribute <code>type</code> giving the driver type (such
             as qcow2), of the new file created by the external
             snapshot of the new file.  If <code>source</code> is not
-            given, a file name is generated that consists of the
-            existing file name with anything after the trailing dot
-            replaced by the snapshot name.  Remember that with external
+            given and the disk is backed by a local image file (not
+            a block device or remote storage), a file name is
+            generated that consists of the existing file name
+            with anything after the trailing dot replaced by the
+            snapshot name.  Remember that with external
             snapshots, the original file name becomes the read-only
             snapshot, and the new file name contains the read-write
             delta of all disk changes since the snapshot.
index a5e8406e125c64fe776cf8b403946eac844d97ac..5da71c3f34d34510dcd35caaaa227d0ac9434522 100644 (file)
@@ -3219,7 +3219,9 @@ The I<--diskspec> option can be used to control how I<--disk-only> and
 external checkpoints create external files.  This option can occur
 multiple times, according to the number of <disk> elements in the domain
 xml.  Each <diskspec> is in the
-form B<disk[,snapshot=type][,driver=type][,file=name]>.  To include a
+form B<disk[,snapshot=type][,driver=type][,file=name]>.  A I<diskspec>
+must be provided for disks backed by block devices as libvirt doesn't
+auto-generate file names for those.  To include a
 literal comma in B<disk> or in B<file=name>, escape it with a second
 comma.  A literal I<--diskspec> must precede each B<diskspec> unless
 all three of I<domain>, I<name>, and I<description> are also present.