diff options
author | Richard Jones <rjones@redhat.com> | 2010-08-23 22:19:24 +0100 |
---|---|---|
committer | Richard Jones <rjones@redhat.com> | 2010-08-24 11:54:42 +0100 |
commit | 831b1fc1805e8450202b5c2cf9ab17a163ab0cc5 (patch) | |
tree | 497735bd8728fc972be7dd907692cefe5ad3bc84 /src | |
parent | 90d06e28888d9a492560ca986dca0708f881d173 (diff) | |
download | libguestfs-831b1fc1805e8450202b5c2cf9ab17a163ab0cc5.tar.gz libguestfs-831b1fc1805e8450202b5c2cf9ab17a163ab0cc5.tar.xz libguestfs-831b1fc1805e8450202b5c2cf9ab17a163ab0cc5.zip |
Change protocol to send Linux errno from daemon to library.
This changes the protocol so that the Linux errno (if available)
is sent back to the library. Note that the errno is not yet
made available to callers, since it is not clear how best to
present this Linux-specific number.
Diffstat (limited to 'src')
-rwxr-xr-x | src/generator.ml | 1 | ||||
-rw-r--r-- | src/guestfs.pod | 5 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/generator.ml b/src/generator.ml index 7d35ac14..233f8bd2 100755 --- a/src/generator.ml +++ b/src/generator.ml @@ -6331,6 +6331,7 @@ enum guestfs_message_status { pr "\ struct guestfs_message_error { + int linux_errno; /* Linux errno if available. */ string error_message<GUESTFS_ERROR_LEN>; }; diff --git a/src/guestfs.pod b/src/guestfs.pod index a4d9c572..4dafb074 100644 --- a/src/guestfs.pod +++ b/src/guestfs.pod @@ -724,7 +724,7 @@ The error message you get from this is also a little obscure. This could be fixed in the generator by specially marking parameters and return values which take bytes or other units. -=item Protocol should return errno with error messages. +=item Library should return errno with error messages. It would be a nice-to-have to be able to get the original value of 'errno' from inside the appliance along error paths (where set). @@ -732,6 +732,9 @@ Currently L<guestmount(1)> goes through hoops to try to reverse the error message string into an errno, see the function error() in fuse/guestmount.c. +In libguestfs 1.5.4, the protocol was changed so that the +Linux errno is sent back from the daemon. + =back =head2 PROTOCOL LIMITS |