[libvirt] [RFC 1/5]: Return exitstatus from virStorageBackendRunProgRegex

Chris Lalancette clalance at redhat.com
Thu Jun 12 14:09:00 UTC 2008

This patch changes things around so that virStorageBackendRunProgRegex() does
*not* virStorageReportError() if the fork()/exec() process it spawned returned a
!= 0 exit code.  Rather, it returns the exitcode in this case, and it is up to
the higher level to determine whether this is a fatal error or not.  The use
case for this change is in the iSCSI stuff; older versions of iscsiadm tools
would return a failure when getting the session number, despite the command

Signed-off-by: Chris Lalancette <clalance at redhat.com>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: libvirt-storage-runprogregex-exitstatus.patch
Type: text/x-patch
Size: 5937 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20080612/6d8f4118/attachment-0001.bin>

More information about the libvir-list mailing list