Generator: Implement RBufferOut and "read-file" call.
authorRichard W.M. Jones <rjones@redhat.com>
Tue, 21 Jul 2009 10:00:47 +0000 (11:00 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Tue, 21 Jul 2009 10:18:34 +0000 (11:18 +0100)
commite315e0723ec8c2f84809f06d7f2ede4955dd6c67
tree6ab1add695fea97184a3aa0680084c4f2c220a1b
parentf6eb8d44942c3d550c72933c406905f2cb86278d
Generator: Implement RBufferOut and "read-file" call.

This commit implements the RBufferOut type for returning
arbitrary 8 bit data from calls.

We also implement the guestfs_read_file call to read a
whole file that can contain any 8 bit content, but up to
a limit of ~ 2 MB.
TODO
daemon/file.c
regressions/Makefile.am
regressions/test-read_file.sh [new file with mode: 0755]
src/MAX_PROC_NR
src/generator.ml