Bug 672491 - RFE: guestfs_last_errno should be exposed in perl bindings
Summary: RFE: guestfs_last_errno should be exposed in perl bindings
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: libguestfs
Version: 6.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Richard W.M. Jones
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-01-25 10:31 UTC by Matthew Booth
Modified: 2011-12-06 10:42 UTC (History)
3 users (show)

Fixed In Version: libguestfs-1.7.17-24.el6
Doc Type: Enhancement
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-12-06 10:42:14 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2011:1512 0 normal SHIPPED_LIVE libguestfs bug fix update 2011-12-06 00:39:11 UTC

Description Matthew Booth 2011-01-25 10:31:21 UTC
guestfs_last_errno() isn't exposed in the perl bindings, meaning it is not directly possible to determine the cause of a failure.

An example which has come up recently in virt-v2v is failure checking on mkdir(). EEXIST would be non-fatal, but any other error would be fatal.

Comment 2 Richard W.M. Jones 2011-01-25 10:56:10 UTC
We seem to have agreed to defer this to 6.2.  Setting flags
accordingly.

Comment 3 Richard W.M. Jones 2011-03-15 16:52:27 UTC
Patch posted upstream:
https://www.redhat.com/archives/libguestfs/2011-March/msg00077.html

Comment 4 Richard W.M. Jones 2011-03-15 16:53:14 UTC
Sorry, this is not the upstream bug, setting state
back to ASSIGNED.

Comment 6 Richard W.M. Jones 2011-06-12 18:12:33 UTC
dev-ack'd for RHEL 6.2.

Comment 7 Richard W.M. Jones 2011-08-10 16:00:53 UTC
https://brewweb.devel.redhat.com/taskinfo?taskID=3546057

Comment 9 Jinxin Zheng 2011-08-18 09:20:14 UTC
Verified this using this script:

$ perl <<'EOF'
use Sys::Guestfs;
my $h = Sys::Guestfs->new ();
print $h->last_errno();
EOF

script output:

libguestfs-1.7.17-19:
Can't locate object method "last_errno" via package "Sys::Guestfs" at - line 3.


libguestfs-1.7.17-26:
0

Comment 10 errata-xmlrpc 2011-12-06 10:42:14 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2011-1512.html


Note You need to log in before you can comment on or make changes to this bug.