summaryrefslogtreecommitdiffstats
path: root/php
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2011-08-23 20:21:29 +0100
committerRichard W.M. Jones <rjones@redhat.com>2011-08-23 20:21:32 +0100
commit4fb3b23fb69e4274f434f9258e38f185426298f7 (patch)
treecefaecf19dffcbc08b070bd32217a8ee294ae3a0 /php
parentce18be33cd5279a8d4120eedd037400c275585c0 (diff)
downloadlibguestfs-4fb3b23fb69e4274f434f9258e38f185426298f7.tar.gz
libguestfs-4fb3b23fb69e4274f434f9258e38f185426298f7.tar.xz
libguestfs-4fb3b23fb69e4274f434f9258e38f185426298f7.zip
php: Fix bug in PHP tests.
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.
Diffstat (limited to 'php')
-rw-r--r--php/extension/guestfs_php_002.phpt4
1 files changed, 2 insertions, 2 deletions
diff --git a/php/extension/guestfs_php_002.phpt b/php/extension/guestfs_php_002.phpt
index 2417a7e0..a6e74ad4 100644
--- 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/sda1") ||
+ ! guestfs_vgcreate ($g, "VG", array ("/dev/sda1")) ||
! guestfs_lvcreate ($g, "LV", "VG", 64) ||
! guestfs_mkfs ($g, "ext2", "/dev/VG/LV")) {
die ("Error: ".guestfs_last_error ($g)."\n");