summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rwxr-xr-xsrc/generator.ml6
-rw-r--r--src/guestfs.pod9
2 files changed, 5 insertions, 10 deletions
diff --git a/src/generator.ml b/src/generator.ml
index e18fa389..7d35ac14 100755
--- a/src/generator.ml
+++ b/src/generator.ml
@@ -6324,8 +6324,12 @@ enum guestfs_message_status {
GUESTFS_STATUS_ERROR = 1
};
-const GUESTFS_ERROR_LEN = 256;
+";
+
+ pr "const GUESTFS_ERROR_LEN = %d;\n" (64 * 1024);
+ pr "\n";
+ pr "\
struct guestfs_message_error {
string error_message<GUESTFS_ERROR_LEN>;
};
diff --git a/src/guestfs.pod b/src/guestfs.pod
index 5deccb5d..a4d9c572 100644
--- a/src/guestfs.pod
+++ b/src/guestfs.pod
@@ -724,15 +724,6 @@ 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 limit of 256 characters for error messages
-
-This limit is both rather small and quite unnecessary. We should be
-able to return error messages up to the length of the protocol message
-(2-4 MB).
-
-Note that we cannot change the protocol without some breakage, because
-there are distributions that repackage the Fedora appliance.
-
=item Protocol should return errno with error messages.
It would be a nice-to-have to be able to get the original value of