mirror of https://gitee.com/openkylin/libvirt.git
doc: add doc for missed parameters of attach-disk
* tools/virsh.pod (add docs for --persistent and --sourcetype of attach-disk, break the long lines in the meantime)
This commit is contained in:
parent
83fa118458
commit
84146be4e9
|
@ -645,7 +645,9 @@ See the documentation to learn about libvirt XML format for a device.
|
||||||
For cdrom and floppy devices, this command only replaces the media within
|
For cdrom and floppy devices, this command only replaces the media within
|
||||||
the single existing device; consider using B<update-device> for this usage.
|
the single existing device; consider using B<update-device> for this usage.
|
||||||
|
|
||||||
=item B<attach-disk> I<domain-id> I<source> I<target> optional I<--driver driver> I<--subdriver subdriver> I<--type type> I<--mode mode>
|
=item B<attach-disk> I<domain-id> I<source> I<target> optional
|
||||||
|
I<--driver driver> I<--subdriver subdriver> I<--type type>
|
||||||
|
I<--mode mode> I<--persistent> I<--sourcetype soucetype>
|
||||||
|
|
||||||
Attach a new disk device to the domain.
|
Attach a new disk device to the domain.
|
||||||
I<source> and I<target> are paths for the files and devices.
|
I<source> and I<target> are paths for the files and devices.
|
||||||
|
@ -654,8 +656,12 @@ I<type> can indicate I<cdrom> or I<floppy> as alternative to the disk default,
|
||||||
although this use only replaces the media within the existing virtual cdrom or
|
although this use only replaces the media within the existing virtual cdrom or
|
||||||
floppy device; consider using B<update-device> for this usage instead.
|
floppy device; consider using B<update-device> for this usage instead.
|
||||||
I<mode> can specify the two specific mode I<readonly> or I<shareable>.
|
I<mode> can specify the two specific mode I<readonly> or I<shareable>.
|
||||||
|
I<persistent> indicates the changes will affect the next boot of the domain.
|
||||||
|
I<sourcetype> can indicate the type of source (block|file)
|
||||||
|
|
||||||
=item B<attach-interface> I<domain-id> I<type> I<source> optional I<--target target> I<--mac mac> I<--script script> I<--model model> I<--persistent>
|
=item B<attach-interface> I<domain-id> I<type> I<source> optional
|
||||||
|
I<--target target> I<--mac mac> I<--script script> I<--model model>
|
||||||
|
I<--persistent>
|
||||||
|
|
||||||
Attach a new network interface to the domain.
|
Attach a new network interface to the domain.
|
||||||
I<type> can be either I<network> to indicate a physical network device or I<bridge> to indicate a bridge to a device.
|
I<type> can be either I<network> to indicate a physical network device or I<bridge> to indicate a bridge to a device.
|
||||||
|
|
Loading…
Reference in New Issue