[Libguestfs] [PATCH V3] NEW API:xfs:xfs_repair

Richard W.M. Jones rjones at redhat.com
Wed Aug 29 12:36:29 UTC 2012


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/




More information about the Libguestfs mailing list