summaryrefslogtreecommitdiffstats
path: root/guestfs.pod
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2009-07-03 11:53:49 +0200
committerJim Meyering <meyering@redhat.com>2009-07-03 17:04:21 +0200
commita7b73d4a1e09f12b2002083618056f0c823c1dcf (patch)
tree6c476572bde4ee9ae0788086d9492a339c09c937 /guestfs.pod
parente9f5144537a4d89cc875bce42b269d1e2b119d8f (diff)
downloadlibguestfs-a7b73d4a1e09f12b2002083618056f0c823c1dcf.tar.gz
libguestfs-a7b73d4a1e09f12b2002083618056f0c823c1dcf.tar.xz
libguestfs-a7b73d4a1e09f12b2002083618056f0c823c1dcf.zip
remove trailing blanks
Diffstat (limited to 'guestfs.pod')
-rw-r--r--guestfs.pod14
1 files changed, 7 insertions, 7 deletions
diff --git a/guestfs.pod b/guestfs.pod
index a41fd27c..c7310a64 100644
--- a/guestfs.pod
+++ b/guestfs.pod
@@ -7,7 +7,7 @@ guestfs - Library for accessing and modifying virtual machine images
=head1 SYNOPSIS
#include <guestfs.h>
-
+
guestfs_h *handle = guestfs_create ();
guestfs_add_drive (handle, "guest.img");
guestfs_launch (handle);
@@ -49,28 +49,28 @@ If you are using the high-level API, then you should call the
functions in the following order:
guestfs_h *handle = guestfs_create ();
-
+
guestfs_add_drive (handle, "guest.img");
/* call guestfs_add_drive additional times if the guest has
* multiple disks
*/
-
+
guestfs_launch (handle);
guestfs_wait_ready (handle);
/* now you can examine what partitions, LVs etc are available
* you have to mount / at least
- */
+ */
guestfs_mount (handle, "/dev/sda1", "/");
/* now you can perform actions on the guest disk image */
guestfs_touch (handle, "/hello");
-
+
/* you only need to call guestfs_sync if you have made
* changes to the guest image
*/
guestfs_sync (handle);
-
+
guestfs_close (handle);
C<guestfs_wait_ready> and all of the actions including C<guestfs_sync>
@@ -168,7 +168,7 @@ If you set C<cb> to C<NULL> then I<no> handler is called.
Returns the current error handler callback.
-=head2 guestfs_set_out_of_memory_handler
+=head2 guestfs_set_out_of_memory_handler
typedef void (*guestfs_abort_cb) (void);
int guestfs_set_out_of_memory_handler (guestfs_h *handle,