diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2011-05-06 12:23:00 -0400 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2011-05-06 13:04:19 -0400 |
commit | 87fb6d852db04d0d707e6587d4579d1cf2bd05ef (patch) | |
tree | 93bdbad050a3618b7a7c3d71f36341932ea1ef57 /fish | |
parent | be3b028d7f2fadd8d2107a419393511e4510d0a4 (diff) | |
download | libguestfs-87fb6d852db04d0d707e6587d4579d1cf2bd05ef.tar.gz libguestfs-87fb6d852db04d0d707e6587d4579d1cf2bd05ef.tar.xz libguestfs-87fb6d852db04d0d707e6587d4579d1cf2bd05ef.zip |
fish: Allow -d UUID (specify libvirt domains by UUID).
This applies in all the commands which use the common C option parsing
code, ie:
* guestfish
* guestmount
* virt-cat
* virt-df
* virt-filesystems
* virt-inspector
* virt-ls
* virt-rescue
Diffstat (limited to 'fish')
-rw-r--r-- | fish/guestfish.pod | 2 | ||||
-rw-r--r-- | fish/virt.c | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/fish/guestfish.pod b/fish/guestfish.pod index 94deb9cc..77bf0ca3 100644 --- a/fish/guestfish.pod +++ b/fish/guestfish.pod @@ -199,6 +199,8 @@ Add disks from the named libvirt domain. If the I<--ro> option is also used, then any libvirt domain can be used. However in write mode, only libvirt domains which are shut down can be named here. +Domain UUIDs can be used instead of names. + Using this flag is mostly equivalent to using the C<add-domain> command, with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if the I<--format:...> flag was given. diff --git a/fish/virt.c b/fish/virt.c index b14cee2b..486f098e 100644 --- a/fish/virt.c +++ b/fish/virt.c @@ -48,5 +48,8 @@ add_libvirt_drives (const char *guest) optargs.live = 1; } + optargs.bitmask |= GUESTFS_ADD_DOMAIN_ALLOWUUID_BITMASK; + optargs.allowuuid = 1; + return guestfs_add_domain_argv (g, guest, &optargs); } |