summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* inspector: Add some real virt-inspector tests.Richard W.M. Jones2012-11-135-5/+68
|
* extra-tests: Move valgrind suppressions file to top source directory.Richard W.M. Jones2012-11-123-3/+24
| | | | This is just code motion.
* Various fixes to API support script.Richard W.M. Jones2012-11-1211-49/+5373
| | | | | Remove internal structures, fix it so it works with the new code layout under src/
* lib: Split up huge src/guestfs.c into logical compilation units.Richard W.M. Jones2012-11-129-541/+675
| | | | | | | | | | | | | | | | | | | This file had grown by accretion to include: - code related to handles (now in src/handle.c) - safe allocation (src/alloc.c) - debug, errors, warnings (src/errors.c) - private data (src/private-data.c) - miscellaneous functions (src/canonical-name.c, src/utils.c) This commit also removes about a dozen #include files which were probably not really used. This is just code motion.
* test-tool: Print cachedir and tmpdir.Richard W.M. Jones2012-11-101-0/+6
| | | | This fixes commit 1efed122c07792f4c66a4083159cfacfb1893212.
* Update release notes.Richard W.M. Jones2012-11-102-7/+109
|
* Version 1.19.58.1.19.58Richard W.M. Jones2012-11-1020-24351/+25655
|
* lib: Fix memory leak in tmpdir/cachedir code (found by valgrind).Richard W.M. Jones2012-11-101-0/+3
| | | | This fixes commit 1efed122c07792f4c66a4083159cfacfb1893212.
* tests: Remove double-test for availability.Richard W.M. Jones2012-11-092-16/+29
| | | | | | | | | | If you have a function which is in the X optgroup, and also has IfAvailable X, then two tests for the optgroup are added to the output. Check for this case and give an error. This also fixes existing APIs.
* tests: More efficient use of strings in the object code.Richard W.M. Jones2012-11-091-37/+32
| | | | No functional change.
* tests: Use guestfs_{push,pop}_error_handler.Richard W.M. Jones2012-11-091-13/+7
| | | | | | Replace the custom error handler with calls to guestfs_{push,pop}_error_handler only where necessary. This simplifies the generated code.
* tests: Cleanup code that prints each test name.Richard W.M. Jones2012-11-091-12/+18
| | | | This is just code motion.
* tests: Change code for printing warnings about untested functions.Richard W.M. Jones2012-11-091-3/+12
| | | | Just code cleanup, no functional change.
* tests: Remove dead code in generated output.Richard W.M. Jones2012-11-091-10/+0
|
* tests: Format the generated code properly.Richard W.M. Jones2012-11-091-6/+12
| | | | This is just whitespace changes in the output.
* fuse: Use guestfs_{push,pop}_error_handler so we can see errors in shutdown.Richard W.M. Jones2012-11-091-7/+9
| | | | | | In the fork (usual) case, we still won't see any errors since stderr has been redirected to /dev/null, but this way is still a little more correct.
* tools: Modify existing tools to use guestfs_{push,pop}_error_handler.Richard W.M. Jones2012-11-0913-160/+83
| | | | | This is a shorter and more convenient way to disable errors temporarily across calls.
* lib: Modify library code to use guestfs_{push,pop}_error_handler.Richard W.M. Jones2012-11-095-34/+33
| | | | | This is less efficient than directly manipulating g->error_cb, but easier to maintain.
* lib: Add new C API calls: guestfs_push_error_handler,Richard W.M. Jones2012-11-094-11/+95
| | | | | | | | | | | | | | | | | guestfs_pop_error_handler. The addition of these calls makes it much simpler to temporarily disable or ignore errors: guestfs_push_error_handler (g, NULL, NULL); guestfs_mkdir (g, "/foo"); /* We don't care if this fails. */ guestfs_pop_error_handler (g); Note these calls are used by the C API only. They are not necessary in other languages, because those map errors to exceptions. The subsequent commits change existing code to use push/pop instead of laboriously saving and restoring the error handler.
* lib: Break long line in definition of guestfs_set_error_handler.Richard W.M. Jones2012-11-091-1/+2
| | | | This is just a whitespace change.
* examples: Copy-editing instructions printed by the mount-local program.Richard W.M. Jones2012-11-091-3/+3
|
* header: Define LIBGUESTFS_HAVE_CREATE_FLAGS=1.Richard W.M. Jones2012-11-091-0/+1
| | | | This fixes commit 9466060201600db47016133d80af22eb38091a49.
* fish: Update documentation for environment variables.Richard W.M. Jones2012-11-091-8/+22
| | | | This fixes commit 1efed122c07792f4c66a4083159cfacfb1893212.
* lib: Rework temporary and cache directory code.Richard W.M. Jones2012-11-0920-130/+358
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | New APIs: set-tmpdir, get-tmpdir, set-cachedir, get-cachedir. The current code has evolved over time and has a number of problems: (a) A single environment variable ($TMPDIR) controls the location of several directories. (b) It's hard for the library user to predict which directory libguestfs will use, unless the user simulates the same internal steps that libguestfs performs. This commit fixes these issues. (a) Now three environment variables control the location of all small temporary files, and the appliance cache: For temporary files: $LIBGUESTFS_TMPDIR or $TMPDIR or /tmp. For the appliance cache: $LIBGUESTFS_CACHEDIR or $TMPDIR or /var/tmp. The user can also set these directories explicitly through API calls (guestfs_set_tmpdir and guestfs_set_cachedir). (b) The user can also retrieve the actual directories that libguestfs will use, by calling guestfs_get_tmpdir and guestfs_get_cachedir. These functions are also used internally. This commit also: - reworks the internal tmpdir code - removes the internal (undocumented) guestfs_tmpdir call (replacing it with calls to the documented guestfs_get_tmpdir API instead) - changes the ./run script to set LIBGUESTFS_TMPDIR and LIBGUESTFS_CACHEDIR - adds a test - fixes a few places like libguestfs-make-fixed-appliance which depended on $TMPDIR
* lib: When parsing environment, handle LIBGUESTFS_TRACE first.Richard W.M. Jones2012-11-091-4/+4
| | | | So that we can trace all the later calls.
* Version 1.19.57.1.19.57Richard W.M. Jones2012-11-071-1/+1
|
* format: Allow virt-format test to be skipped by setting ↵Richard W.M. Jones2012-11-061-0/+5
| | | | SKIP_TEST_VIRT_FORMAT_SH=1.
* lib: debian support for package arch inspectionJohn Eckersberg2012-11-051-3/+8
|
* tests: wipefs: Don't try to wipe mounted filesystem.Richard W.M. Jones2012-11-031-1/+2
| | | | | | | Previously wipefs (the utility) allowed this, but it's obviously a bad thing to do and the new wipefs gives an error if you try it: wipefs: error: /dev/VG/LV: probing initialization failed: Device or resource busy
* fish: Fix documentation quit | exit -> separate exit & quit headings.Richard W.M. Jones2012-11-021-1/+3
|
* fish: Clean up prompt documentation.Richard W.M. Jones2012-11-021-2/+2
|
* fish: Use Unicode LOWER ONE QUARTER BLOCK to represent cursor.Richard W.M. Jones2012-11-021-1/+1
| | | | | | 'ls' (with no argument) is not a valid command. This fixes commit bad5c7d5a50e7f340d3a5daff59d7f3c18c0ab8f.
* Version 1.19.56.1.19.56Richard W.M. Jones2012-11-0220-19575/+20588
|
* generator: Split up huge src/actions.c into separate files.Richard W.M. Jones2012-11-025-8/+42
| | | | | | | | Split the functions according to a simple hash across C.nr_actions_files files (this number can be increased later if necessary). This is just code motion.
* generator: actions: Move variant functions to a separate file.Richard W.M. Jones2012-11-025-6/+30
| | | | This is just code motion.
* generator: actions: Move 3 helper functions to a separate file.Richard W.M. Jones2012-11-025-89/+127
| | | | This is just code motion.
* New API: mklost_and_foundRichard W.M. Jones2012-11-024-2/+43
|
* todo: General updates.Richard W.M. Jones2012-11-021-2/+6
|
* ROADMAP: Remove some completed items.Richard W.M. Jones2012-11-021-13/+0
|
* sysprep: Don't fail when trying to remove /var/spool/at/spool (directory).Richard W.M. Jones2012-11-011-1/+3
| | | | This fixes commit 1949016e899b2737525fdc9b6dda451ad9ecbd66.
* inspect: Use new inspect_list_applications2 API callJohn Eckersberg2012-11-012-25/+30
| | | | | RWMJ: - Update virt-inspector.rng.
* lib: Add inspect_list_applications2 method (RHBZ#859949)John Eckersberg2012-11-018-44/+233
| | | | | | RWMJ: - Fix memory leak in guestfs__inspect_list_applications wrapper. - Don't document app2_spare* fields.
* message catalogs don't need to be executableHilko Bengen2012-11-011-1/+1
|
* Version 1.19.55.1.19.55Richard W.M. Jones2012-10-3021-899/+1135
|
* build: Source 'localenv' in top-level Makefile.Richard W.M. Jones2012-10-302-0/+37
| | | | Also document 'local*' files.
* tests: Allow more tests to be skipped.Richard W.M. Jones2012-10-303-0/+18
| | | | | Specifically tests which involve btrfs, because btrfs is currently broken upstream (RHBZ#863978).
* generator: Use an OCaml struct to store the structs.Richard W.M. Jones2012-10-3012-92/+137
| | | | | | This just makes it simpler to add extra fields to each struct. This is code motion.
* lib: Force visibility default on public actions.Richard W.M. Jones2012-10-301-4/+10
| | | | | | This is currently done implicitly because of the linker script. However in order to do symbol versioning, we will have to do this explicitly at each definition instead.
* generator: Move struct-freeing functions to a separate source file.Richard W.M. Jones2012-10-305-27/+47
| | | | This is just code motion.
* sysprep: Move a comment.Richard W.M. Jones2012-10-301-1/+3
| | | | No change.