summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
| * Guestfish tab-completion on destination paths, fixed this time.Richard W.M. Jones2009-07-031-49/+74
| | | | | | | | Tab-completion on destination paths should now work correctly.
| * Don't keep rebuilding debirf module symlinks.Richard W.M. Jones2009-07-032-0/+2
| |
| * 'readdir-and-stat' call is now effectively implemented.Richard W.M. Jones2009-07-031-1/+0
| |
| * Add Debian appliance directory to the distfile.Richard W.M. Jones2009-07-031-1/+22
| | | | | | | | | | | | | | 'make dist' won't copy symlinks into the output file, so we have to add a rule to the Makefile to copy these. (Issue reported by Guido Gunther).
| * use safe_malloc and safe_calloc in generated codeJim Meyering2009-07-033-23/+63
| | | | | | | | | | | | | | | | | | | | * src/generator.ml (safe_malloc): Define to guestfs_safe_malloc. (safe_calloc): Define to guestfs_safe_calloc. [most generated code]: Fail immediately upon failure of otherwise- unchecked malloc and calloc calls. * src/guestfs.c: Include <stddef.h>. (xalloc_oversized): Define. * src/guestfs.h (guestfs_safe_calloc): Declare.
| * prefer sizeof *VAR over sizeof TYPE (no semantic change)Jim Meyering2009-07-021-10/+10
| | | | | | | | | | * src/generator.ml: Slightly safer, in case the declared type ever changes.
* | Merge branch 'master' of git+ssh://192.168.122.1/home/rjones/d/libguestfsRichard Jones2009-07-03121-71846/+5364
|\|
| * Prepare for 1.0.55. PO files also updated.1.0.55Richard W.M. Jones2009-07-023-35/+63
| |
| * Add 'sfdiskM' command.Richard W.M. Jones2009-07-023-32/+55
| | | | | | | | | | | | | | | | | | | | This command is a saner interface to partitioning. All partition sizes are specified in megabytes (not cylinders). You don't need to specify the cyls/heads/secs parameters. All the test code has been updated to use this, so it is now CHS-independent (eg. when CHS changes as between IDE and virtio).
| * Remove generated files guestfs_protocol.[ch].Richard W.M. Jones2009-07-023-4366/+2
| | | | | | | | | | | | These generated files were accidentally left in when we removed the other generated files in cset b3cb0b04eb2d38ba32c160a83d8e3894b376907b.
| * Don't rebuild the whole appliance if just the /init script has been changed.Richard W.M. Jones2009-07-023-11/+7
| |
| * Improve virtio-blk performance (RHBZ#509383).Richard W.M. Jones2009-07-021-0/+3
| |
| * Add ./configure --with-drive-if=(ide|scsi|virtio)Richard W.M. Jones2009-07-023-4/+16
| | | | | | | | | | | | | | | | With this flag the packager can decide to default to a particular qemu drive model. The current default is 'ide', however note that we intend to change this in future to 'virtio' once some upstream regressions are fixed. Packagers can force a particular drive model if they wish.
| * Add the guestfish 'time' command.Richard W.M. Jones2009-07-025-9/+85
| | | | | | | | | | ><fs> time sfdisk /dev/sda 0 0 0 , elapsed time: 6.12 seconds
| * Add list of function_names to the daemon.Richard W.M. Jones2009-07-025-2/+29
| | | | | | | | | | Messages which include the proc_nr can now also include the name of the actual function being called.
| * In verbose mode, daemon will display the time elapsed for each command.Richard W.M. Jones2009-07-021-0/+19
| |
| * Ignore generated file appliance/debian/debirf.confRichard W.M. Jones2009-07-021-0/+1
| |
| * Build Debian based appliance using debirfGuido Günther2009-07-022-123/+139
| |
| * add debirf filesGuido Günther2009-07-0213-0/+118
| |
| * unconditionally load dm moduleGuido Günther2009-07-021-1/+1
| | | | | | | | needed for device mapper (LVM)
| * add missing moduleGuido Günther2009-07-021-0/+1
| | | | | | | | for modularized Debian kernels
| * avoid automake failureJim Meyering2009-07-021-1/+1
| | | | | | | | * daemon/configure.ac: Use AM_PROG_CC_C_O, not AC_PROG_CC_C_O.
| * arrange to build some generated sourcesJim Meyering2009-07-021-0/+9
| | | | | | | | | | * src/Makefile.am (BUILT_SOURCES): Define. ($(BUILT_SOURCES)): Depend on stamp-generator.
| * Re-add src/MAX_PROC_NR (generated file).Richard W.M. Jones2009-07-022-1/+1
| | | | | | | | | | This file is required by configure, so we need to add it so it is available after the git checkout.
| * Memoize the output of pod2text function in the generator.Richard W.M. Jones2009-07-022-24/+46
| | | | | | | | This speeds up the generator greatly.
| * Updated PO files.Richard W.M. Jones2009-07-022-108/+108
| |
| * 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.