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:
9671726
)
php: Fix bug in PHP tests.
author
Richard W.M. Jones
<rjones@redhat.com>
Tue, 23 Aug 2011 19:21:29 +0000
(20:21 +0100)
committer
Richard W.M. Jones
<rjones@redhat.com>
Fri, 16 Sep 2011 15:15:36 +0000
(16:15 +0100)
We partitioned the disk, and then tried to create a PV on the whole
disk. LVM gave the error:
Device /dev/vda not found (or ignored by filtering).
It is unclear how this bug persisted for so long. It might be due to
a change in LVM.
(cherry picked from commit
4fb3b23fb69e4274f434f9258e38f185426298f7
)
php/extension/guestfs_php_002.phpt
patch
|
blob
|
history
diff --git
a/php/extension/guestfs_php_002.phpt
b/php/extension/guestfs_php_002.phpt
index
2417a7e
..
a6e74ad
100644
(file)
--- a/
php/extension/guestfs_php_002.phpt
+++ b/
php/extension/guestfs_php_002.phpt
@@
-23,8
+23,8
@@
fclose ($fp);
if (! guestfs_add_drive ($g, $tmp) ||
! guestfs_launch ($g) ||
! guestfs_part_disk ($g, "/dev/sda", "mbr") ||
- ! guestfs_pvcreate ($g, "/dev/sda") ||
- ! guestfs_vgcreate ($g, "VG", array ("/dev/sda")) ||
+ ! guestfs_pvcreate ($g, "/dev/sda
1
") ||
+ ! guestfs_vgcreate ($g, "VG", array ("/dev/sda
1
")) ||
! guestfs_lvcreate ($g, "LV", "VG", 64) ||
! guestfs_mkfs ($g, "ext2", "/dev/VG/LV")) {
die ("Error: ".guestfs_last_error ($g)."\n");