search for: zerofree_stub

Displaying 2 results from an estimated 2 matches for "zerofree_stub".

2009 Sep 08
1
Perl module versioning
...l you what is available in the dynamically-loaded libguestfs.so, nor in the daemon/appliance. Worked example: Your program needs $g->zerofree. (1) May or may not exist in the Perl library. (2) May or may not exist in the C API (libguestfs.so). (3) May or may not exist in the daemon (stubs.c:zerofree_stub) (4) May or may not have been added to the appliance (/usr/bin/zerofree) Since so much can potentially go wrong, I think the only realistic solution is along these lines: eval { $g->zerofree(...) }; die "zerofree failed: $@" if $@; Do other languages offer equivalent runtime dete...
2012 Feb 01
1
[PATCH] Clarify the error message when unavailable functions are called (RHBZ#679737).
From: "Richard W.M. Jones" <rjones at redhat.com> Callers are supposed to use the availability API to check for functions that may not be available in particular builds of libguestfs. If they don't do this, currently they tend to get obscure error messages, eg: libguestfs: error: zerofree: /dev/vda1: zerofree: No such file or directory This commit changes the error