29 Aug
2012
29 Aug
'12
12:36 p.m.
On Wed, Aug 29, 2012 at 05:33:24PM +0800, Wanlong Gao wrote:
+ if (optargs_bitmask & GUESTFS_XFS_REPAIR_IMGFILE_BITMASK) { + if (imgfile) + ADD_ARG (argv, i, "-f"); + }
You don't need this option any more ...
+ is_device = STREQLEN (device, "/dev/", 5); + if (!is_device) { + buf = sysroot_path (device); + if (buf == NULL) { + reply_with_perror ("malloc"); + goto error; + } + ADD_ARG (argv, i, buf);
... but you do need to add the -f option here. 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/