summaryrefslogtreecommitdiffstats
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* Add Lua bindings.Richard W.M. Jones2012-11-172-0/+2
| | | | | | | | These are relatively complete, although only lightly tested. Missing: - events - last_errno - user_cancel
* recipes: Add sections about hexdumping, hexediting sectors.Richard W.M. Jones2012-11-151-1/+14
|
* recipes: Add recipe for diffing two guests.Richard W.M. Jones2012-11-141-0/+10
|
* tools: Modify existing tools to use guestfs_{push,pop}_error_handler.Richard W.M. Jones2012-11-091-5/+2
| | | | | This is a shorter and more convenient way to disable errors temporarily across calls.
* examples: Copy-editing instructions printed by the mount-local program.Richard W.M. Jones2012-11-091-3/+3
|
* guestfs-testing: Use L<> around links.Richard W.M. Jones2012-10-291-2/+2
|
* New APIs: Model libvirt authentication events through the API.Richard W.M. Jones2012-10-132-1/+179
| | | | | | | | | | | | | | | | | | | | | This commit models libvirt authentication events through the API, adding one new event (GUESTFS_EVENT_LIBVIRT_AUTH) and several new APIs: guestfs_set_libvirt_supported_credentials guestfs_get_libvirt_requested_credentials guestfs_get_libvirt_requested_credential_prompt guestfs_get_libvirt_requested_credential_challenge guestfs_get_libvirt_requested_credential_defresult guestfs_set_libvirt_requested_credential See the documentation and example which shows how to use the new API. This commit also changes existing calls to virConnectOpen* within the library so that the new API is used. Also included is an example (but not a test, because it's hard to see how to automatically test the libvirt API).
* FAQ: Document debug* and internal* functions in the FAQ.Richard W.M. Jones2012-10-061-0/+17
|
* inspection: Fix calls to case_sensitive_path (RHBZ#858126).Richard W.M. Jones2012-09-281-3/+1
| | | | | | | | | | | | | | | | | | | | | Don't assume that if guestfs_case_sensitive_path returns NULL, that it means the file does not exist. The (previously undefined) behaviour of case_sensitive_path was that a NULL return meant "either the file doesn't exist or some other error". However in commit 973581780d8a006f336684fef6762801402d775d this was changed so that if the last element of the path didn't exist, it was assumed to be a new file and the (non-NULL) path of the new file is returned. This change breaks code (including in libguestfs) which tries to use case_sensitive_path as a dual-purpose call to fix-up a path for Windows and test if the file exists. Such code should be rewritten so that it explicitly tests for file existence after calling case_sensitive_path. I examined all the calls to case_sensitive_path in libguestfs and modified them where necessary.
* recipes: Add a section about diagnosing hanging guests.Richard W.M. Jones2012-09-261-0/+29
|
* guestfs-testing(1): Start by running libguestfs-test-tool.Richard W.M. Jones2012-09-261-0/+14
|
* FAQ: Miscellaneous cleanups.Richard W.M. Jones2012-09-251-12/+68
| | | | | | | - Use S<...> for non-breaking spaces. - Arrange the builds section better. - Add a section on enabling sVirt. - Other small fixes.
* recipes: Add section about uploading raw filesystem content.Richard W.M. Jones2012-09-201-0/+24
|
* syntax: Remove trailing whitespace.Richard W.M. Jones2012-09-152-2/+0
| | | | Found by 'make syntax-check'.
* faq: Make the legal section less unnecessarily legalistic.Richard W.M. Jones2012-09-141-6/+7
|
* faq: Tidy up headings.Richard W.M. Jones2012-09-141-12/+16
|
* faq: Add more answers about read-only disks.Richard W.M. Jones2012-09-141-0/+35
|
* recipes: Checksum file/device. Download to stdout.Richard W.M. Jones2012-09-021-0/+26
|
* FAQ: Remove link to old RHEL 6.3 preview repo.Richard W.M. Jones2012-08-301-3/+2
|
* Update inspection and example programs to use new hivex* APIs (RHBZ#852394).Richard W.M. Jones2012-08-292-63/+38
| | | | | | | | | | | | | | | | | | | | | | | I tested this by comparing the output of virt-inspector over Windows guests before and after the change, which was identical: $ md5sum `ls -1 /tmp/*.before /tmp/*.after` c292d6629b5a761eccb4a279754399b4 /tmp/Win2003.after c292d6629b5a761eccb4a279754399b4 /tmp/Win2003.before eb1e1ff29208a9ee46e9c100dfec26b2 /tmp/Win2012.after eb1e1ff29208a9ee46e9c100dfec26b2 /tmp/Win2012.before d060a95d7ffe5dce6c4e66feb80c2837 /tmp/Win7x32.after d060a95d7ffe5dce6c4e66feb80c2837 /tmp/Win7x32.before 8914eee70ac4f8a0317659e09e00dcdc /tmp/Win7x32Dynamic.after 8914eee70ac4f8a0317659e09e00dcdc /tmp/Win7x32Dynamic.before a2dcdfc0f9d64054640875aa791889e0 /tmp/Win7x32TwoDisks.after a2dcdfc0f9d64054640875aa791889e0 /tmp/Win7x32TwoDisks.before 5ed49568a5147dce7517c99de41ebf2e /tmp/Win8previewx64.after 5ed49568a5147dce7517c99de41ebf2e /tmp/Win8previewx64.before fdfc7d272b79a665ae3313ae1ae30660 /tmp/WinXP.after fdfc7d272b79a665ae3313ae1ae30660 /tmp/WinXP.before 3c705444be664f1316b21c5d8d3cb0be /tmp/WinXPRecConsole.after 3c705444be664f1316b21c5d8d3cb0be /tmp/WinXPRecConsole.before
* remove ulockmgr from fuse LDFLAGSOlaf Hering2012-08-291-1/+1
| | | | | | | | | | libguestfs fails to build with --enable-fuse on openSuSE 11.4 and earlier because the included fuse version does not include libulockmgr.so. configure already used pkgconfig to retrieve the correct CFLAGS, so there is no need to hardcode -lulockmgr. With this change the build succeeds again. Signed-off-by: Olaf Hering <olaf@aepfle.de>
* podwrapper: Add --license parameter, which is required.Richard W.M. Jones2012-08-211-0/+5
| | | | | | | | | | This adds standard LICENSE and BUGS sections to all of the man pages that are processed by podwrapper. Modify all the calls to $(PODWRAPPER) to add the right --license parameter according to the content. Note that this relaxes the license on some code example pages, making them effectively BSD-style licensed.
* man pages: Ensure consistent copyright/author sections, remove licenseRichard W.M. Jones2012-08-215-79/+5
| | | | | | | | | | section. Ensure each man page contains consistent COPYRIGHT and AUTHOR sections. Remove the LICENSE section. We will add that back in podwrapper in a later commit.
* FAQ: Re-add #backup anchor for section on backups.Richard W.M. Jones2012-08-211-0/+7
|
* recipes: Update dumping filesystem content to mention that we now support ↵Richard W.M. Jones2012-08-211-1/+1
| | | | MD/RAID.
* recipes: Refer to virt-format, virt-make-fs for creating disk images.Richard W.M. Jones2012-08-211-1/+7
|
* recipes: Cloning Windows: plans for virt-sysprep.Richard W.M. Jones2012-08-211-10/+10
|
* recipes: For auditing for setuid files, point to virt-ls examples.Richard W.M. Jones2012-08-211-4/+1
|
* recipes: For sparsifying guests, point to virt-sparsify.Richard W.M. Jones2012-08-211-4/+1
|
* recipes: For listing files, point to virt-ls.Richard W.M. Jones2012-08-211-3/+1
|
* recipes: Mention virt-sysprep firstboot feature.Richard W.M. Jones2012-08-211-0/+3
|
* recipes: Most guests now use grub2, so change the example.Richard W.M. Jones2012-08-211-1/+1
|
* recipes: Add a section on deleting a file and other common file operations.Richard W.M. Jones2012-08-211-0/+18
|
* recipes: Update cloning section.Richard W.M. Jones2012-08-211-10/+5
|
* FAQ: virt-sparsify and raw sparse output.Richard W.M. Jones2012-08-191-0/+19
|
* Replace mount-options with mount where appropriate.Richard W.M. Jones2012-08-181-1/+1
| | | | | | Since our minimum supported version is now 1.16 and mount was fixed in 1.13.16, it is now safe to replace mount-options + empty options with mount wherever it occurs.
* docs: Add a section describing how to use gdb + qemu wrappers to debug the ↵Richard W.M. Jones2012-08-131-0/+50
| | | | appliance.
* docs: Show how to use 'annotate-output' command to collect timings.Richard W.M. Jones2012-08-121-0/+17
|
* grep: Add optargs to grep API and deprecate fgrep etc.Richard W.M. Jones2012-08-021-1/+3
| | | | | | | | This commit makes grep into an optargs API, with flags for extended, fixed, [case-]insensitive and compressed. At the same time it deprecates: egrep, fgrep, grepi, egrepi, fgrepi, zgrep, zegrep, zfgrep, zgrepi, zegrepi and zfgrepi.
* lib: Initialize libvirt and libxml2 once when the library loads.Richard W.M. Jones2012-07-231-4/+0
|
* docs: Use L<...> for links.Richard W.M. Jones2012-07-173-29/+25
| | | | | Instead of working around bugs, podwrapper has been fixed so that links work in all output formats.
* build: Change calls to podwrapper.sh to use $(PODWRAPPER).Richard W.M. Jones2012-07-161-5/+5
| | | | | This will allow us to easily change the location of this script in future.
* New API: guestfs_shutdown: Cleanly shutdown the backend.Richard W.M. Jones2012-07-033-7/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | The new API splits orderly close into a two-step process: if (guestfs_shutdown (g) == -1) { /* handle the error, eg. qemu error */ } guestfs_close (g); Note that the explicit shutdown step is only necessary in the case where you have made changes to the disk image and want to handle write errors. Read the documentation for further information. This change also: - deprecates guestfs_kill_subprocess - turns guestfs_kill_subprocess into the same as guestfs_shutdown - changes guestfish and other tools to call shutdown + close where necessary (not for read-only tools) - updates documentation - updates examples
* examples: In create_disk example, don't call set_autosync.Richard W.M. Jones2012-07-031-9/+0
| | | | | This is now set by default in all supported versions of libguestfs. It's just confusing if the examples refer to it.
* FAQ: Add Gentoo (thanks Agostino Sarubbo).Richard W.M. Jones2012-06-261-0/+6
|
* FAQ: Mention update-guestfs-appliance (thanks Steven Dake).Richard W.M. Jones2012-06-191-0/+4
|
* doc: Add documentation covering use of utf8 option when mounting vfat ↵Richard W.M. Jones2012-05-251-0/+77
| | | | (RHBZ#823887).
* FAQ: Add section about using libguestfs in closed source programs.Richard W.M. Jones2012-05-231-0/+9
|
* FAQ: Add a note about "child process died unexpectedly".Richard W.M. Jones2012-05-231-0/+12
| | | | | This is a common search term on the main website, and there is no good information provided by Google at present.
* FAQ: Update Ubuntu instructions.Richard W.M. Jones2012-05-231-4/+24
|