18 Nov
2009
18 Nov
'09
10:18 a.m.
On Wed, Nov 18, 2009 at 10:11:41AM +0100, Jim Meyering wrote:
An alternative is to make it so guestfs_pread returns a non-NULL pointer to one malloc'd (and unused) byte for an empty read, and also sets *rsize to 0. *THEN* a NULL return value could suffice to indicate failure.
This is what I've done ... patch coming up shortly. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://et.redhat.com/~rjones/virt-top