git.annexia.org
/
libguestfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
inspect: Refuse to parse /etc/fstab if it is huge.
[libguestfs.git]
/
generator
/
generator_xdr.ml
diff --git
a/generator/generator_xdr.ml
b/generator/generator_xdr.ml
index
4942149
..
c6d8a4d
100644
(file)
--- a/
generator/generator_xdr.ml
+++ b/
generator/generator_xdr.ml
@@
-86,6
+86,7
@@
let generate_xdr () =
| BufferIn n ->
pr " opaque %s<>;\n" n
| FileIn _ | FileOut _ -> ()
| BufferIn n ->
pr " opaque %s<>;\n" n
| FileIn _ | FileOut _ -> ()
+ | Pointer _ -> assert false
) args;
pr "};\n\n"
);
) args;
pr "};\n\n"
);
@@
-157,7
+158,7
@@
let generate_xdr () =
*/
const GUESTFS_PROGRAM = 0x2000F5F5;
*/
const GUESTFS_PROGRAM = 0x2000F5F5;
-const GUESTFS_PROTOCOL_VERSION =
2
;
+const GUESTFS_PROTOCOL_VERSION =
3
;
/* These constants must be larger than any possible message length. */
const GUESTFS_LAUNCH_FLAG = 0xf5f55ff5;
/* These constants must be larger than any possible message length. */
const GUESTFS_LAUNCH_FLAG = 0xf5f55ff5;
@@
-181,7
+182,8
@@
enum guestfs_message_status {
pr "\
struct guestfs_message_error {
pr "\
struct guestfs_message_error {
- int linux_errno; /* Linux errno if available. */
+ string errno_string<32>; /* errno eg. \"EINVAL\", empty string
+ if errno not available */
string error_message<GUESTFS_ERROR_LEN>;
};
string error_message<GUESTFS_ERROR_LEN>;
};