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

Chris Lalancette clalance at redhat.com
Mon Jun 16 13:52:31 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
succeeding.

Changes since last time:
1)  Fix up whitespace damage

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


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


More information about the libvir-list mailing list