summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Remove generated code from git.Richard W.M. Jones2009-07-0238-82609/+38
| | | | | | | | Git users now require the OCaml compiler in order to regenerate the generated code after a checkout. Generated code will remain in the tarball, so users of the source tarball will not need the OCaml compiler.
* Generator now runs automatically when it has changed.Richard W.M. Jones2009-07-024-7/+24
|
* Add 'readdir' call.Richard W.M. Jones2009-07-0236-37/+1287
| | | | | | | | | | | | This adds a readdir call (mostly intended for programs). The return value is a list of guestfs_dirent structures. This adds the new types 'struct guestfs_dirent' and 'struct guestfs_dirent_list', along with all the code to return these in the different language bindings. Also includes additional tests for OCaml and Perl bindings to test this.
* fish: handle some out-of-memory conditionsJim Meyering2009-07-011-29/+62
| | | | | | | | | | | | | * fish/destpaths.c (xalloc_oversized): Define. (complete_dest_paths_generator): Use size_t as type for a few variables, rather than int. Don't deref NULL or undef on failed heap alloc. Don't leak on failed realloc. Detect theoretical overflow when count_strings returns a very large number of strings. Handle asprintf failure. (APPEND_STRS_AND_FREE): Rewrite as do {...}while(0), so that each use can/must be followed by a semicolon. Better for auto-formatters.
* Call 'udevadm settle' after operations which add/remove device nodes.Richard W.M. Jones2009-07-014-0/+42
| | | | | | | | | | | | | Because udev operates asynchronously, we found errors which were caused by a previous command (eg. sfdisk or pvremove) creating or removing a device, and that change not having happened by the time the next command was run. This patch adds calls to '/sbin/udevadm settle' after any commands which can add or remove device nodes. If udev is not being used or not available, this should have no effect. The command fails and this is silently ignored.
* All instances of 'pclose' now check for return value != 0.Richard W.M. Jones2009-07-013-6/+6
| | | | | | We are generally interested that the subcommand ran without error, ie. had exit status of 0. 'pclose' returns the exit status, so we now check that pclose (fp) != 0.
* Fix error handling of external sfdisk command.Richard W.M. Jones2009-07-011-4/+3
| | | | | | | | Should use 'pclose' instead of 'fclose' (although fclose happens to work because of glibc internals). The result of pclose is the exit status of the command, so we need to test this is != 0.
* Generated code for the virtio_blk change.Richard W.M. Jones2009-07-017-288/+233
|
* Change to use virtio_blk (virtio block device) by default.Richard W.M. Jones2009-07-014-17/+25
| | | | | | | | | | | | | virtio_blk is the fast, virt-native block device driver supported by qemu and KVM. Note that virtio_blk device names are called /dev/vd*. Existing scripts should continue working because device name translation will silently change device names of the form /dev/sd* to /dev/vd* as required. See also: http://libguestfs.org/guestfs.3.html#block_device_naming
* Don't dereference or free undefined "msg" upon OOM.Jim Meyering2009-07-011-1/+3
| | | | * src/guestfs.c (guestfs_error): Handle failing vasprintf.
* Add libguestfs(3) as an alias manpage for guestfs(3).Richard W.M. Jones2009-07-012-2/+4
|
* Updated PO files.Richard W.M. Jones2009-07-012-112/+112
|
* Reorder the environment variables alphabetically in the documentation.Richard W.M. Jones2009-07-012-29/+29
|
* Document the $PAGER environment variable.Richard W.M. Jones2009-07-011-0/+5
|
* Document the LIBGUESTFS_MEMSIZE environment variable.Richard W.M. Jones2009-07-012-0/+14
|
* Change statvfs test so it doesn't depend on device size.Richard W.M. Jones2009-06-301-2/+1
| | | | | | | | Current statvfs test depended on a lot of filesystem details which can change if the CHS of the underlying block device changes (eg. with the switch from IDE -> virtio). These are not really necessary to test the call, so instead just check for filesystem features.
* Clean up the output of the C API test code.Richard W.M. Jones2009-06-301-4/+6
| | | | | | | Set output mode to unbuffered so that we see ordinary output messages and errors at the same time. Align "skipped" messages.
* Todo: getfattr, setfattr.Richard W.M. Jones2009-06-301-0/+2
|
* Whitelist kernel modules for hardware emulated by QEMUGuido Günther2009-06-301-4/+13
| | | | | (Modified from Guido's original patch to use a wildcard to specify all virtio modules - RWMJ).
* Generated code for mknod, mkfifo, mknod_b, mknod_c, umask.Richard W.M. Jones2009-06-3025-4/+2572
|
* New commands: mknod, mkfifo, mknod_b, mknod_c and umask.Richard W.M. Jones2009-06-305-2/+187
| | | | | | | | | | These commands are used to create block and char device nodes or FIFOs (named pipes) in the filesystem. The umask command is required also because the permissions used by mknod are masked by the umask. Also document and guarantee that the umask starts as 022.
* Use octal numbers for modes in the test suite.Richard W.M. Jones2009-06-301-23/+23
| | | | | We have to use the OCaml convention (0o...). Note that in OCaml 0777 is a _decimal_ number. It'll catch you out.
* Generated code for 'set_memsize'/'get_memsize' calls.Richard W.M. Jones2009-06-3017-0/+438
|
* Add 'set_memsize'/'get_memsize' calls.Richard W.M. Jones2009-06-303-16/+62
| | | | | | Allow the qemu memory size to be specified either by API calls or by setting the LIBGUESTFS_MEMSIZE environment variable.
* Use udev if available (Guido Gunter).Guido Günther2009-06-302-19/+30
| | | | Added support for Fedora's udev (Richard Jones).
* define REDHAT and DEBIANGuido Günther2009-06-303-8/+21
| | | | so we can preprocess packagelist.in
* Todo: Suggest an environment variable for memsize configuration.Richard W.M. Jones2009-06-291-0/+1
|
* Generated code for the 'mkswap*' commands.Richard W.M. Jones2009-06-2924-4/+1235
|
* Implement 'mkswap', 'mkswap_L' and 'mkswap_U' commands.Richard W.M. Jones2009-06-293-0/+95
| | | | | | These commands are used to make Linux swap devices. The mkswap_L command makes one with a label. The mkswap_U command makes one with a known UUID.
* Todo: Allow memsize to be configured.Richard W.M. Jones2009-06-291-0/+4
|
* Todo: Investigations into 'binarch' command.Richard W.M. Jones2009-06-291-0/+9
|
* Rearrange guestfish commands in the manpage.Richard W.M. Jones2009-06-291-21/+26
|
* Add missing documentation for new 'more' and 'less' commands in guestfish.Richard W.M. Jones2009-06-291-0/+14
|
* Version 1.0.541.0.54Richard W.M. Jones2009-06-293-111/+161
|
* Check for XML::Writer dependency for virt-inspector.Richard W.M. Jones2009-06-291-1/+1
|
* Remove generated files in make clean.Richard W.M. Jones2009-06-291-2/+5
|
* Merge commit 'et/master'Matthew Booth2009-06-2933-41/+1143
|\
| * Fix for 'broken pipe' error when qemu dies (RHBZ#508713).Richard W.M. Jones2009-06-291-2/+5
| |
| * Generated code for mount-loop command.Richard W.M. Jones2009-06-2924-3/+356
| |
| * Add mount-loop command (RHBZ#508668).Richard W.M. Jones2009-06-292-0/+52
| | | | | | | | | | | | | | | | | | Loop device mounts don't work for the generic 'mount' commands because the first parameter should be a file not a device. We want to separate out files parameters from device parameters in the long term, so this adds a new mount-loop command for this purpose.
| * Fix memory leak in daemon/mount.c:do_mount_vfs.Richard W.M. Jones2009-06-291-0/+1
| |
| * Todo list: More suggestions.Richard W.M. Jones2009-06-291-0/+13
| |
| * Generated code for 'initrd-list'.Richard W.M. Jones2009-06-2923-3/+594
| |
| * Add 'initrd-list' command to list contents of initrd images.Richard W.M. Jones2009-06-296-35/+124
| | | | | | | | | | | | Add 'initrd-list' command to list the files inside (new-style) initrd images. Update virt-inspector to use this instead of the less efficient download/unpack locally method.
* | Output the config filename containing a modprobe alias in XMLMatthew Booth2009-06-291-4/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change affects the XML output: /operatingsystems/operatingsystem/modprobealiases/alias/text() => /operatingsystems/operatingsystem/modprobealiases/alias/modulename/text() Additionally there are two new elements: /operatingsystems/operatingsystem/modprobealiases/alias/augeas /operatingsystems/operatingsystem/modprobealiases/alias/file These contain information about the location of the alias directive. /augeas is an augeas path. /file is the path of the file containing the directive.
* | Add a comment to device naming heuristicMatthew Booth2009-06-291-0/+6
|/
* Generated code for 'du' command.Richard W.M. Jones2009-06-2924-4/+502
|
* Added 'du' command.Richard W.M. Jones2009-06-294-1/+89
| | | | This command estimates file usage for files and directories.
* Generated code for df / df-h.Richard W.M. Jones2009-06-2923-2/+653
|
* Add 'df' and 'df-h' commands.Richard W.M. Jones2009-06-293-0/+96
| | | | | | | df and df-h commands can be used interactively to show disk space usage. Use existing statvfs command from programs.