diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2010-11-02 20:33:06 +0000 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2010-11-02 20:33:06 +0000 |
commit | 1937698c25fb9f066dba7b48ad4731927e3e74da (patch) | |
tree | 92420b668ac0611c229bfea826a077d6e1e8406b /daemon | |
parent | 47d158596140328e12aa3b8028a77dd40bf12eeb (diff) | |
download | libguestfs-1937698c25fb9f066dba7b48ad4731927e3e74da.tar.gz libguestfs-1937698c25fb9f066dba7b48ad4731927e3e74da.tar.xz libguestfs-1937698c25fb9f066dba7b48ad4731927e3e74da.zip |
daemon: Tolerate failure of blockdev --rereadpt after sfdisk.
See commit 840536ea5a0568296dfd3e483442c76b93c5a949
and commit 956fc5a3feacc970ea763697bf28fb686c875408.
Diffstat (limited to 'daemon')
-rw-r--r-- | daemon/sfdisk.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/daemon/sfdisk.c b/daemon/sfdisk.c index bf62c1da..ec774653 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", NULL); udev_settle (); |