git.annexia.org
/
libguestfs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
47d1585
)
daemon: Tolerate failure of blockdev --rereadpt after sfdisk.
author
Richard W.M. Jones
<rjones@redhat.com>
Tue, 2 Nov 2010 20:33:06 +0000
(20:33 +0000)
committer
Richard W.M. Jones
<rjones@redhat.com>
Tue, 2 Nov 2010 20:33:06 +0000
(20:33 +0000)
See commit
840536ea5a0568296dfd3e483442c76b93c5a949
and commit
956fc5a3feacc970ea763697bf28fb686c875408
.
daemon/sfdisk.c
patch
|
blob
|
history
diff --git
a/daemon/sfdisk.c
b/daemon/sfdisk.c
index
bf62c1d
..
ec77465
100644
(file)
--- 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 ();