X-Git-Url: http://git.annexia.org/?p=libguestfs.git;a=blobdiff_plain;f=daemon%2Fsfdisk.c;h=b5956015e7cc6c6f7ab44f4e75896abe6e87c221;hp=bf62c1dab42f135f41fb9042740ee09e8b7e2da6;hb=0d13b052635c24919b1a42d00f20154526c25e96;hpb=840536ea5a0568296dfd3e483442c76b93c5a949 diff --git a/daemon/sfdisk.c b/daemon/sfdisk.c index bf62c1d..b595601 100644 --- a/daemon/sfdisk.c +++ b/daemon/sfdisk.c @@ -101,8 +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. */ - if (do_blockdev_rereadpt (device) == -1) - return -1; + (void) command (NULL, NULL, "blockdev", "--rereadpt", device, NULL); udev_settle ();