On Wed, Nov 04, 2009 at 03:10:27PM +0000, Richard W.M. Jones wrote:
On Wed, Nov 04, 2009 at 02:49:13PM +0000, Richard W.M. Jones wrote:
libguestfs: error: hexdump: hexdump: /test123: hexdump: /sysroot/test123: Bad file descriptor [...] Anyway, I'm still experimenting with this one ... It might be better just to open /dev/null for stdin, since I suppose other programs could be unpredictable if they have no stdin at all.
The patch below uses this approach, and I have tested it on Debian and Fedora. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. http://et.redhat.com/~rjones/virt-df/