summaryrefslogtreecommitdiffstats
path: root/examples
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Add Erlang bindings.Richard W.M. Jones2011-09-212-0/+2
|
* out-of-tree build: remove unneeded explicit pathsHilko Bengen2011-08-171-2/+2
|
* recipes: Remove two C file dependencies which are not actually used in the POD.Richard W.M. Jones2011-08-151-1/+1
|
* out-of-tree build: fix documentation generationHilko Bengen2011-08-151-6/+6
|
* java: Add guestfs-java(3) man page.Richard W.M. Jones2011-07-192-0/+2
|
* recipes: in tr command \000 should be \0Richard W.M. Jones2011-06-031-1/+1
|
* Add new guestfs-rescue(1) man page with recipes.Richard W.M. Jones2011-05-183-4/+440
|
* guestfs-examples(3): Remove link to OCaml homepage.Richard W.M. Jones2011-05-181-2/+1
|
* Enable deprecation warnings on all C programs.Richard W.M. Jones2011-05-171-0/+3
|
* New API: inspect-get-windows-current-control-setRichard W.M. Jones2011-04-051-23/+8
| | | | | | | | | | | | | | This returns the actual registry key corresponding to CurrentControlSet (eg. it might be "ControlSet001"). Previously the inspection code was hard-coding ControlSet001. Now we use the correct control set, and also make it available to callers through the API. This commit also updates the virt-dhcp-address example so it uses this new API. virt-inspector displays the current control set when available.
* examples: Add virt-dhcp-address program.Richard W.M. Jones2011-03-312-0/+354
| | | | | | This is like the mythical 'virt-ifconfig'. There is not enough certainty around the right way to be doing this for us to make a full virt tool for this. Therefore the code is just an example.
* examples: Use WARN_CFLAGS, WERROR_CFLAGS macros instead of -WallRichard W.M. Jones2011-03-311-5/+11
|
* examples: size_t-correctness change in inspect_vm.cRichard W.M. Jones2011-03-311-2/+2
|
* perl: Translate C examples into Perl and include a manual page.Richard W.M. Jones2011-01-301-0/+1
|
* fish: Don't fail if some mountpoints in /etc/fstab are bogus (RHBZ#668574).Richard W.M. Jones2011-01-111-2/+4
| | | | | | | | | | | | | | | | | Fix guestfish (and other C tools) so that they ignore errors when /etc/fstab contains bogus entries. Update the documentation for inspect-get-mountpoints to emphasize that callers must be aware of this when mounting the returned values. Add a regression test. Update the example code ("inspect_vm") to reflect the way this API ought to be called. For more detail see: https://bugzilla.redhat.com/show_bug.cgi?id=668574
* ruby: Translate C examples into Ruby and include documentation.Richard W.M. Jones2010-11-241-0/+1
|
* python: Translate C examples into Python and include documentation.Richard W.M. Jones2010-11-241-0/+1
|
* docs: Standard C examples, and guestfs-examples(3) man page.Richard W.M. Jones2010-11-248-276/+361
|