X-Git-Url: http://git.annexia.org/?a=blobdiff_plain;f=src%2Fguestfs.pod;h=304668844a7e7e48f8145b43819455f3afbc1361;hb=1d1ffa4ed6af5a3d2569c95986adb66b226fa3b7;hp=dd419ac7dc5e143a2f14d68ada61583b36dde637;hpb=dabe72cb8b7b23cc6e6158d458327313b8a8495a;p=libguestfs.git diff --git a/src/guestfs.pod b/src/guestfs.pod index dd419ac..3046688 100644 --- a/src/guestfs.pod +++ b/src/guestfs.pod @@ -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. @@ -450,10 +455,10 @@ Where we can help is in resolving the case insensitivity of paths. For this, call C. Libguestfs also provides some help for decoding Windows Registry -"hive" files, through the library C which is part of -libguestfs. You have to locate and download the hive file(s) -yourself, and then pass them to C functions. See also the -programs L, L and L for more +"hive" files, through the library C which is part of the +libguestfs project. You have to locate and download the hive file(s) +yourself, and then pass them to C functions. See also the +programs L, L and L for more help on this issue. =head2 USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES @@ -589,6 +594,29 @@ C to run commands. =back +=head2 PROTOCOL LIMITS + +Internally libguestfs uses a message-based protocol to pass API calls +and their responses to and from a small "appliance" (see L +for plenty more detail about this). The maximum message size used by +the protocol is slightly less than 4 MB. For some API calls you may +need to be aware of this limit. The API calls which may be affected +are individually documented, with a link back to this section of the +documentation. + +A simple call such as C returns its result (the file +data) in a simple string. Because this string is at some point +internally encoded as a message, the maximum size that it can return +is slightly under 4 MB. If the requested file is larger than this +then you will get an error. + +In order to transfer large files into and out of the guest filesystem, +you need to use particular calls that support this. The sections +L and L document how to do this. + +You might also consider mounting the disk image using our FUSE +filesystem support (L). + =head1 CONNECTION MANAGEMENT =head2 guestfs_h * @@ -784,7 +812,7 @@ need the compile time check as well): dl = dlopen (NULL, RTLD_LAZY); if (!dl) { fprintf (stderr, "dlopen: %s\n", dlerror ()); - exit (1); + exit (EXIT_FAILURE); } has_function = dlsym (dl, "guestfs_dd") != NULL; dlclose (dl); @@ -1303,8 +1331,21 @@ enough. =head1 SEE ALSO L, +L, +L, +L, +L, +L, +L, +L, +L, +L, +L, +L, +L, L, L, +L, L. Tools with a similar purpose: