[Libguestfs] [PATCH 4/5] fuse: Fix read for empty files.

Richard W.M. Jones rjones at redhat.com
Wed Nov 18 10:18:01 UTC 2009


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




More information about the Libguestfs mailing list