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
This commit is contained in:
Richard W.M. Jones
2011-05-06 12:23:00 -04:00
parent be3b028d7f
commit 87fb6d852d
10 changed files with 19 additions and 11 deletions

5
TODO
View File

@@ -432,11 +432,6 @@ guestfish drive letters
There should be an option to mount all Windows drives as separate
paths, like C: => /c/, D: => /d/ etc.
Select machines by UUID
-----------------------
guestfish -u UUID <or> guestfish -d UUID
More inspection features
------------------------

View File

@@ -92,7 +92,8 @@ not used at all.
=item B<--domain> guest
Add all the disks from the named libvirt guest.
Add all the disks from the named libvirt guest. Domain UUIDs can be
used instead of names.
=item B<--echo-keys>

View File

@@ -142,7 +142,8 @@ read L</NOTE ABOUT CSV FORMAT> below.
=item B<--domain> guest
Add all the disks from the named libvirt guest.
Add all the disks from the named libvirt guest. Domain UUIDs can be
used instead of names.
=item B<--echo-keys>

View File

@@ -92,7 +92,8 @@ not used at all.
=item B<--domain> guest
Add all the disks from the named libvirt guest.
Add all the disks from the named libvirt guest. Domain UUIDs can be
used instead of names.
=item B<--echo-keys>

View File

@@ -89,7 +89,8 @@ not used at all.
=item B<--domain> guest
Add all the disks from the named libvirt guest.
Add all the disks from the named libvirt guest. Domain UUIDs can be
used instead of names.
=item B<--format=raw|qcow2|..>

View File

@@ -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.

View File

@@ -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);
}

View File

@@ -93,6 +93,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.
=item B<--dir-cache-timeout N>
Set the readdir cache timeout to I<N> seconds, the default being 60

View File

@@ -86,7 +86,8 @@ then libvirt is not used at all.
=item B<--domain> guest
Add all the disks from the named libvirt guest.
Add all the disks from the named libvirt guest. Domain UUIDs can be
used instead of names.
=item B<--echo-keys>

View File

@@ -118,7 +118,8 @@ not used at all.
=item B<--domain> guest
Add all the disks from the named libvirt guest.
Add all the disks from the named libvirt guest. Domain UUIDs can be
used instead of names.
=item B<--format=raw|qcow2|..>