From 715a29642aaedc6b19b451677cb02658d5924b7f Mon Sep 17 00:00:00 2001 Message-Id: <715a29642aaedc6b19b451677cb02658d5924b7f@dist-git> From: Peter Krempa Date: Wed, 28 Jan 2015 10:33:39 +0100 Subject: [PATCH] man: virsh: Add man page for "virsh metadata" https://bugzilla.redhat.com/show_bug.cgi?id=1184929 Patch adding the command forgot to add the man page entry. Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1130379 (cherry picked from commit 992318cbee83dc381c44acfdfdecfb2607279e25) Signed-off-by: Jiri Denemark --- tools/virsh.pod | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/tools/virsh.pod b/tools/virsh.pod index f1b09d9..c3ae204 100644 --- a/tools/virsh.pod +++ b/tools/virsh.pod @@ -1073,6 +1073,36 @@ I<--total> for only the total stats, I for only the per-cpu stats of the CPUs from I, I for only I CPUs' stats. +=item B I [[I<--live>] [I<--config>] | [I<--current>]] +[I<--edit>] [I] [I] [I] [I<--remove>] + +Show or modify custom XML metadata of a domain. The metadata is a user +defined XML that allows to store arbitrary XML data in the domain definition. +Multiple separate custom metadata pieces can be stored in the domain XML. +The pieces are identified by a private XML namespace provided via the +I argument. + +Flags I<--live> or I<--config> select whether this command works on live +or persistent definitions of the domain. If both I<--live> and I<--config> +are specified, the I<--config> option takes precedence on getting the current +description and both live configuration and config are updated while setting +the description. I<--current> is exclusive and implied if none of these was +specified. + +Flag I<--remove> specifies that the metadata element specified by the I +argument should be removed rather than updated. + +Flag I<--edit> specifies that an editor with the metadata identified by the +I argument should be opened and the contents saved back afterwards. +Otherwise the new contents can be provided via the I argument. + +When setting metadata via I<--edit> or I the I argument must be +specified and is used to prefix the custom elements to bind them +to the private namespace. + +If neither of I<--edit> and I are specified the XML metadata corresponding +to the I namespace is displayed instead of being modified. + =item B [I<--live>] [I<--offline>] [I<--direct>] [I<--p2p> [I<--tunnelled>]] [I<--persistent>] [I<--undefinesource>] [I<--suspend>] [I<--copy-storage-all>] [I<--copy-storage-inc>] [I<--change-protection>] [I<--unsafe>] [I<--verbose>] -- 2.2.2