daemon: In sfdisk call blockdev --rereadpt with device name.
[libguestfs.git] / daemon / sfdisk.c
index ec77465..b595601 100644 (file)
@@ -101,7 +101,7 @@ sfdisk (const char *device, int n, int cyls, int heads, int sectors,
    * other component.  In any case, reread the partition table
    * unconditionally here.
    */
-  (void) command (NULL, NULL, "blockdev", "--rereadpt", NULL);
+  (void) command (NULL, NULL, "blockdev", "--rereadpt", device, NULL);
 
   udev_settle ();