X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=daemon%2Fsfdisk.c;h=ec77465317b1afea57069740eede495560e2303f;hp=99a18bb144e8ee0017f0c203005dc5d3eab9d3cf;hb=e44cf42f362d793c47d892a18a6853d88abd6ecb;hpb=956fc5a3feacc970ea763697bf28fb686c875408 diff --git a/daemon/sfdisk.c b/daemon/sfdisk.c index 99a18bb..ec77465 100644 --- a/daemon/sfdisk.c +++ b/daemon/sfdisk.c @@ -89,8 +89,6 @@ sfdisk (const char *device, int n, int cyls, int heads, int sectors, return -1; } - udev_settle (); - /* sfdisk sometimes fails on fast machines with: * * Re-reading the partition table ... @@ -103,7 +101,11 @@ sfdisk (const char *device, int n, int cyls, int heads, int sectors, * other component. In any case, reread the partition table * unconditionally here. */ - return do_blockdev_rereadpt (device); + (void) command (NULL, NULL, "blockdev", "--rereadpt", NULL); + + udev_settle (); + + return 0; } int