summaryrefslogtreecommitdiffstats
path: root/java/examples/InspectVM.java
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2012-03-19 16:32:10 +0000
committerRichard W.M. Jones <rjones@redhat.com>2012-03-21 14:09:19 +0000
commite6b32f63e6a594dde9e0279b82b2a47a9e317c86 (patch)
tree168ec438a2bce9064fa64ecd82c1b84c098e643e /java/examples/InspectVM.java
parentc1e147c125197a3a0bc84fe4e62a89d928646288 (diff)
downloadlibguestfs-e6b32f63e6a594dde9e0279b82b2a47a9e317c86.tar.gz
libguestfs-e6b32f63e6a594dde9e0279b82b2a47a9e317c86.tar.xz
libguestfs-e6b32f63e6a594dde9e0279b82b2a47a9e317c86.zip
inspection: Set last errno to ENOTSUP when inspection APIs are not available.
Previously there was no programmatic way to tell if inspection APIs were unavailable because they are not compiled in (because hivex isn't around). This contrasts with daemon APIs where the availability is covered by the guestfs_available API. Change the inspection APIs so that when they are not available, the last errno is set to ENOTSUP. (Note that ENOTSUP must be defined on all POSIX platforms). This allows programs to detect if they are using a version of libguestfs that was compiled without support for inspection, without having to parse error messages. (cherry picked from commit c7dff02ccbb6bbe505c73df5d83bea8afdc188c3)
Diffstat (limited to 'java/examples/InspectVM.java')
0 files changed, 0 insertions, 0 deletions