From 8869adf1e811d894088dbb0f371edc23299005c8 Mon Sep 17 00:00:00 2001 From: Richard Jones Date: Mon, 21 Sep 2009 11:52:53 +0100 Subject: 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. --- haskell/Guestfs010Launch.hs | 1 - haskell/Guestfs050LVCreate.hs | 1 - 2 files changed, 2 deletions(-) (limited to 'haskell') diff --git a/haskell/Guestfs010Launch.hs b/haskell/Guestfs010Launch.hs index 27e49f77..930d6665 100644 --- a/haskell/Guestfs010Launch.hs +++ b/haskell/Guestfs010Launch.hs @@ -28,5 +28,4 @@ main = do hClose fd Guestfs.add_drive g "test.img" Guestfs.launch g - Guestfs.wait_ready g removeLink "test.img" diff --git a/haskell/Guestfs050LVCreate.hs b/haskell/Guestfs050LVCreate.hs index b82bf0da..502f6b2c 100644 --- a/haskell/Guestfs050LVCreate.hs +++ b/haskell/Guestfs050LVCreate.hs @@ -28,7 +28,6 @@ main = do hClose fd Guestfs.add_drive g "test.img" Guestfs.launch g - Guestfs.wait_ready g Guestfs.pvcreate g "/dev/sda" Guestfs.vgcreate g "VG" ["/dev/sda"] -- cgit