In guestfs(3), unmount "/" directory in the example.
[libguestfs.git] / src / guestfs.pod
index 1c7a02a..3046688 100644 (file)
@@ -13,9 +13,14 @@ guestfs - Library for accessing and modifying virtual machine images
  guestfs_launch (handle);
  guestfs_mount (handle, "/dev/sda1", "/");
  guestfs_touch (handle, "/hello");
+ guestfs_umount (handle, "/");
  guestfs_sync (handle);
  guestfs_close (handle);
 
+ cc prog.c -o prog -lguestfs
+or:
+ cc prog.c -o prog `pkg-config libguestfs --cflags --libs`
+
 =head1 DESCRIPTION
 
 Libguestfs is a library for accessing and modifying guest disk images.