From 48c656ca5535b0aa781ce6f0f7f0222476dab3a4 Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Fri, 12 Jul 2019 15:43:01 -0500 Subject: [PATCH] snapshot: Documentation and comment improvements MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Changes noticed while copying to similar aspects of checkpoints. Signed-off-by: Eric Blake Reviewed-by: Daniel P. Berrangé --- docs/formatsnapshot.html.in | 8 +++----- tests/virsh-snapshot | 2 +- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/docs/formatsnapshot.html.in b/docs/formatsnapshot.html.in index 92cc566467..005800bc00 100644 --- a/docs/formatsnapshot.html.in +++ b/docs/formatsnapshot.html.in @@ -223,11 +223,9 @@ guest.
parent
-
An optional readonly representation of the parent of this - snapshot. If present, this element contains exactly one child - element, name. This specifies the name of the - parent snapshot of this snapshot, and is used to represent - trees of snapshots. +
Readonly, present only if this snapshot has a parent. The + parent name is given by the sub-element name. The + parent relationship allows tracking a tree of related snapshots.
domain
A readonly representation of the domain that this snapshot diff --git a/tests/virsh-snapshot b/tests/virsh-snapshot index c31da52ef9..b23d949f62 100755 --- a/tests/virsh-snapshot +++ b/tests/virsh-snapshot @@ -85,7 +85,7 @@ $abs_top_builddir/tools/virsh --connect test:///default >out 2>err ' # and snapshot-list produces timestamps sed 's/ *$//; s/[0-9-]\{10\} [0-9:.]* .[0-9]\{4\}/TIMESTAMP/; /MarkerA/,/MarkerC/d' < out > out.cooked || fail=1 -# Second part holds domain XMLs +# Second part holds domain snapshot XMLs sed -n '/MarkerA/,/MarkerB/p' < out > s3.xml || fail=1 sed -n '/MarkerB/,/MarkerC/p' < out > s2.xml || fail=1 -- 2.47.2