summaryrefslogtreecommitdiffstats
path: root/ocaml
diff options
context:
space:
mode:
authorRichard Jones <rjones@trick.home.annexia.org>2009-09-21 11:52:53 +0100
committerRichard Jones <rjones@trick.home.annexia.org>2009-09-21 12:01:51 +0100
commit8869adf1e811d894088dbb0f371edc23299005c8 (patch)
tree6c0229f90c81f03f6e989cdd57e20b114a437d41 /ocaml
parent62b322872543c2ec069ac4fb0103ab758f587cef (diff)
downloadlibguestfs-8869adf1e811d894088dbb0f371edc23299005c8.tar.gz
libguestfs-8869adf1e811d894088dbb0f371edc23299005c8.tar.xz
libguestfs-8869adf1e811d894088dbb0f371edc23299005c8.zip
Remove guestfs_wait_ready (turn it into a no-op).
This commit changes guestfs_launch so that it both launches the appliance and waits until it is ready (ie. the daemon communicates back to us). Since we removed the pretence that we could implement a low-level asynchronous API, the need to call launch() followed by wait_ready() has looked a bit silly. Now guestfs_wait_ready() is basically a no-op. It is left in the API for backwards compatibility. Any calls to guestfs_wait_ready() can be removed from client code.
Diffstat (limited to 'ocaml')
-rw-r--r--ocaml/examples/lvs.ml1
-rw-r--r--ocaml/t/guestfs_010_launch.ml1
-rw-r--r--ocaml/t/guestfs_050_lvcreate.ml1
-rw-r--r--ocaml/t/guestfs_060_readdir.ml1
4 files changed, 0 insertions, 4 deletions
diff --git a/ocaml/examples/lvs.ml b/ocaml/examples/lvs.ml
index 12c7c15a..74998b9f 100644
--- a/ocaml/examples/lvs.ml
+++ b/ocaml/examples/lvs.ml
@@ -11,7 +11,6 @@ let () =
let h = Guestfs.create () in
Guestfs.add_drive h Sys.argv.(1);
Guestfs.launch h;
- Guestfs.wait_ready h;
let pvs = Guestfs.pvs h in
printf "PVs found: [ %s ]\n" (String.concat "; " (Array.to_list pvs));
diff --git a/ocaml/t/guestfs_010_launch.ml b/ocaml/t/guestfs_010_launch.ml
index b253e0c4..ae0f9f15 100644
--- a/ocaml/t/guestfs_010_launch.ml
+++ b/ocaml/t/guestfs_010_launch.ml
@@ -27,6 +27,5 @@ let () =
Guestfs.add_drive g "test.img";
Guestfs.launch g;
- Guestfs.wait_ready g;
unlink "test.img"
diff --git a/ocaml/t/guestfs_050_lvcreate.ml b/ocaml/t/guestfs_050_lvcreate.ml
index 2d5bb1f9..ad98c062 100644
--- a/ocaml/t/guestfs_050_lvcreate.ml
+++ b/ocaml/t/guestfs_050_lvcreate.ml
@@ -27,7 +27,6 @@ let () =
Guestfs.add_drive g "test.img";
Guestfs.launch g;
- Guestfs.wait_ready g;
Guestfs.pvcreate g "/dev/sda";
Guestfs.vgcreate g "VG" [|"/dev/sda"|];
diff --git a/ocaml/t/guestfs_060_readdir.ml b/ocaml/t/guestfs_060_readdir.ml
index e9368a81..8035a095 100644
--- a/ocaml/t/guestfs_060_readdir.ml
+++ b/ocaml/t/guestfs_060_readdir.ml
@@ -27,7 +27,6 @@ let () =
Guestfs.add_drive g "test.img";
Guestfs.launch g;
- Guestfs.wait_ready g;
Guestfs.sfdisk g "/dev/sda" 0 0 0 [|","|];
Guestfs.mkfs g "ext2" "/dev/sda1";