summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2009-11-13 15:57:32 +0000
committerRichard W.M. Jones <rjones@redhat.com>2009-11-13 15:57:32 +0000
commit747eb7138ada2c999abc686fc5de18bcad96a1b7 (patch)
treec1ebb18cc0b4afffd2f69e11f1e145d309dc9b71
parent259f78cfa70af5505b8172bb81a3d1e2d7581bb5 (diff)
downloadlibguestfs-747eb7138ada2c999abc686fc5de18bcad96a1b7.tar.gz
libguestfs-747eb7138ada2c999abc686fc5de18bcad96a1b7.tar.xz
libguestfs-747eb7138ada2c999abc686fc5de18bcad96a1b7.zip
Docs: group preformatted sections of text together.
-rw-r--r--guestfish.pod6
-rw-r--r--guestfs.pod16
2 files changed, 11 insertions, 11 deletions
diff --git a/guestfish.pod b/guestfish.pod
index 25080664..026f82d1 100644
--- a/guestfish.pod
+++ b/guestfish.pod
@@ -49,13 +49,13 @@ Remove C</boot/grub/menu.lst> (in reality not such a great idea):
=head2 As an interactive shell
$ guestfish
-
+
Welcome to guestfish, the libguestfs filesystem interactive shell for
editing virtual machine filesystems.
-
+
Type: 'help' for help with commands
'quit' to quit the shell
-
+
><fs> help
=head2 As a script interpreter
diff --git a/guestfs.pod b/guestfs.pod
index dcfa51c9..d7175951 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);
@@ -60,35 +60,35 @@ and finally closing the handle. So the general structure of all
libguestfs-using programs looks like this:
guestfs_h *handle = guestfs_create ();
-
+
/* Call guestfs_add_drive additional times if there are
* multiple disk images.
*/
guestfs_add_drive (handle, "guest.img");
-
+
/* Most manipulation calls won't work until you've launched
* the handle. You have to do this _after_ adding drives
* and _before_ other commands.
*/
guestfs_launch (handle);
-
+
/* Now you can examine what partitions, LVs etc are available.
*/
char **partitions = guestfs_list_partitions (handle);
char **logvols = guestfs_lvs (handle);
-
+
/* To access a filesystem in the image, you must mount it.
*/
guestfs_mount (handle, "/dev/sda1", "/");
-
+
/* Now you can perform filesystem 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);
-
+
/* Close the handle. */
guestfs_close (handle);