daemon: In sfdisk call blockdev --rereadpt with device name.
authorRichard W.M. Jones <rjones@redhat.com>
Tue, 23 Nov 2010 18:41:59 +0000 (18:41 +0000)
committerRichard W.M. Jones <rjones@redhat.com>
Tue, 23 Nov 2010 18:42:26 +0000 (18:42 +0000)
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 ();