summaryrefslogtreecommitdiffstats
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* examples: Further fixes to mount-local example program.Richard W.M. Jones2012-05-141-5/+26
| | | | | | | * Set PS1 prompt properly for bash shells. * Touch a file into the root directory of the new filesystem. This fixes commit 46b6766156ace142443b36e20e55074c544ae6cc.
* example: Various fixes to mount-local example program.Richard W.M. Jones2012-05-141-6/+31
| | | | | | | | | * Move MOUNT_OPTIONS to #define at top. * Move SIZE_MB to #define at top. * Set PS1 in subshell (doesn't work - why?). * Hide libguestfs errors from guestfs_mount_local_run. This fixes commit 46b6766156ace142443b36e20e55074c544ae6cc.
* debian: examples: Don't break when O_CLOEXEC is not defined.Richard W.M. Jones2012-05-141-0/+4
| | | | | | This affected Debian 6. This fixes commit 46b6766156ace142443b36e20e55074c544ae6cc.
* examples: Add mount options "acl,user_xattr" to mount-local example.Richard W.M. Jones2012-05-131-1/+1
| | | | This fixes commit 46b6766156ace142443b36e20e55074c544ae6cc.
* examples: Add an example of using the mount-local API from C.Richard W.M. Jones2012-05-132-0/+171
|
* examples: Add if HAVE_HIVEX ... endif around virt_dhcp_address example.Richard W.M. Jones2012-05-131-0/+2
|
* FAQ: Fix typo in download (thanks badnews@IRC)Richard W.M. Jones2012-05-101-2/+2
|
* Turn libguestfs FAQ into a man page: guestfs-faq(1).Richard W.M. Jones2012-05-012-0/+570
|
* New man page: guestfs-performance(1).Richard W.M. Jones2012-04-112-0/+409
| | | | This contains tips for engineering libguestfs for greatest performance.
* example: Copying a directory between two guests using threads.Richard W.M. Jones2012-03-092-0/+308
|
* Check return values of guestfs_inspect_get_{type,distro} (found by Coverity).Richard W.M. Jones2012-03-081-0/+4
| | | | | | | | | Error: NULL_RETURNS: /builddir/build/BUILD/libguestfs-1.16.5/examples/virt-dhcp-address.c:129: var_assigned: Assigning: "guest_distro" = null return value from "guestfs_inspect_get_distro". /builddir/build/BUILD/libguestfs-1.16.5/examples/virt-dhcp-address.c:131: dereference: Dereferencing a pointer that might be null "guest_distro" when calling "__coverity_strcmp". [...] /builddir/build/BUILD/libguestfs-1.16.5/examples/virt-dhcp-address.c:126: var_assigned: Assigning: "guest_type" = null return value from "guestfs_inspect_get_type". /builddir/build/BUILD/libguestfs-1.16.5/examples/virt-dhcp-address.c:128: dereference: Dereferencing a pointer that might be null "guest_type" when calling "__coverity_strcmp".
* Add 'display_icon' example program.Richard W.M. Jones2012-03-072-1/+140
| | | | | Running this on a disk image displays the guest icon (using external 'display' program).
* examples: code cleanupsWanlong Gao2012-01-312-2/+2
| | | | | | do a code cleanup by removing the tailing spaces Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
* Tempus fugit.Richard W.M. Jones2012-01-182-2/+2
| | | | Update all copyright dates to 2012.
* df, testing: Add notes on virt-df numbers (thanks Kashyap Chamarthy).Richard W.M. Jones2011-11-221-1/+23
|
* guestfs-testing: Link to libguestfs-test-tool.Richard W.M. Jones2011-11-211-0/+5
|
* Add guestfs-testing(1) man page.Richard W.M. Jones2011-11-202-4/+309
| | | | This contains suggested manual tests that users can run.
* Update FSF address.Matthew Booth2011-11-081-1/+1
|