X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=daemon%2Fsfdisk.c;h=2f5206edd96a6bb4a63771a89b21528ee457d440;hb=f6e36bf361c587e0dbb2f0c71f5d22a7cf7f4f42;hp=9d7a220f8a15802350295e0a511d74de57cb241d;hpb=5cd39c83e23eb300d1bdfa806902a31b409ff420;p=libguestfs.git diff --git a/daemon/sfdisk.c b/daemon/sfdisk.c index 9d7a220..2f5206e 100644 --- a/daemon/sfdisk.c +++ b/daemon/sfdisk.c @@ -39,7 +39,7 @@ sfdisk (const char *device, int n, int cyls, int heads, int sectors, IS_DEVICE (device, -1); - strcpy (buf, "/sbin/sfdisk --no-reread"); + strcpy (buf, "/sbin/sfdisk"); if (n > 0) sprintf (buf + strlen (buf), " -N %d", n); if (cyls) @@ -51,6 +51,9 @@ sfdisk (const char *device, int n, int cyls, int heads, int sectors, /* Safe because of IS_DEVICE above: */ sprintf (buf + strlen (buf), " %s", device); + if (verbose) + printf ("%s\n", buf); + fp = popen (buf, "w"); if (fp == NULL) { reply_with_perror (buf);