From: Osier Yang Date: Fri, 22 Nov 2013 12:55:25 +0000 (+0800) Subject: Doc: Explicitly declaring that nodedev-destroy only works for vHBA X-Git-Tag: CVE-2013-6436~149 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec2fb767bbd087c30b421b6c10eb2de25e90aa62;p=thirdparty%2Flibvirt.git Doc: Explicitly declaring that nodedev-destroy only works for vHBA Though trying to destroy a physical HBA doesn't make sense at all, it's still a bit misleading with saying "only works for HBA". Signed-off-by: Osier Yang --- diff --git a/src/libvirt.c b/src/libvirt.c index a2df53d3bf..8618f4f5e9 100644 --- a/src/libvirt.c +++ b/src/libvirt.c @@ -16070,8 +16070,9 @@ error: * virNodeDeviceDestroy: * @dev: a device object * - * Destroy the device object. The virtual device is removed from the host operating system. - * This function may require privileged access + * Destroy the device object. The virtual device (only works for vHBA + * currently) is removed from the host operating system. This function + * may require privileged access. * * Returns 0 in case of success and -1 in case of failure. */ diff --git a/tools/virsh.pod b/tools/virsh.pod index f51060fde8..c6a8be3d1f 100644 --- a/tools/virsh.pod +++ b/tools/virsh.pod @@ -2158,9 +2158,9 @@ contains xml for a top-level description of a node device. =item B I Destroy (stop) a device on the host. I can be either device -name or wwn pair in "wwnn,wwpn" format (only works for HBA). Note -that this makes libvirt quit managing a host device, and may even make -that device unusable by the rest of the physical host until a reboot. +name or wwn pair in "wwnn,wwpn" format (only works for vHBA currently). +Note that this makes libvirt quit managing a host device, and may even +make that device unusable by the rest of the physical host until a reboot. =item B I [I<--driver backend_driver>]