mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
daemon: In sfdisk call blockdev --rereadpt with device name.
This commit is contained in:
@@ -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 ();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user