summaryrefslogtreecommitdiffstats
path: root/lib/pb-protocol/pb-protocol.h
diff options
context:
space:
mode:
authorGeoff Levand <geoffrey.levand@am.sony.com>2009-03-25 12:35:47 +0000
committerJeremy Kerr <jk@ozlabs.org>2009-03-30 20:19:57 +1100
commit29fbf1a71d8ac7deace11064fff48e7c2c67c178 (patch)
tree9cf73124e1507f970c5fec1f0c3108461302294a /lib/pb-protocol/pb-protocol.h
parent95fdf2bd9857b21ce5079938ee6d701f6a876641 (diff)
downloadtalos-petitboot-29fbf1a71d8ac7deace11064fff48e7c2c67c178.tar.gz
talos-petitboot-29fbf1a71d8ac7deace11064fff48e7c2c67c178.zip
Increase protocol payload size
Fixes the problem of big conf files not showing up in the UI. Increases the protocol payload from 4 KiB to 8 KiB. Also, adds some log messages when I/O errors occur, or the payload is too large for the protocol. Signed-off-by: Geoff Levand <geoffrey.levand@am.sony.com> Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'lib/pb-protocol/pb-protocol.h')
-rw-r--r--lib/pb-protocol/pb-protocol.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pb-protocol/pb-protocol.h b/lib/pb-protocol/pb-protocol.h
index 972f8f1..36b68dd 100644
--- a/lib/pb-protocol/pb-protocol.h
+++ b/lib/pb-protocol/pb-protocol.h
@@ -7,7 +7,7 @@
#define PB_SOCKET_PATH "/tmp/petitboot.ui"
-#define PB_PROTOCOL_MAX_PAYLOAD_SIZE 4096
+#define PB_PROTOCOL_MAX_PAYLOAD_SIZE (8 * 1024)
enum pb_protocol_action {
PB_PROTOCOL_ACTION_ADD = 0x1,
OpenPOWER on IntegriCloud