summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Unify supermin appliance building using febootstrap 2.7Richard Jones2010-05-131-12/+10
|
* Fix FileIn cmds losing synch if both ends send cancel messages (RHBZ#576879).Richard Jones2010-05-131-9/+9
| | | | | | | | | | | | | | | | | | | | | | | During a FileIn command (eg. upload, tar-in) if both sides experience errors, then both sides could send cancel messages, the result being lost synchronization. The reason for the lost synch was because the daemon was ignoring this case and sending an error message back which the library side (which had cancelled) was not expecting. Fix this by checking in the daemon for the case where the library also cancels during daemon cancellation, and not sending an error messages. This also includes an enhanced regression test which checks for this case. This extends the original fix in commit 5922d7084d6b43f0a1a15b664c7082dfeaf584d0. More details can be found here: https://bugzilla.redhat.com/show_bug.cgi?id=576879#c5
* Fix error message in string-e command (RHBZ#588651).Richard Jones2010-05-131-4/+33
|
* Add version numbers to Perl modules (RHBZ#521674).Richard Jones2010-05-121-11/+17
| | | | | | | | | | Sys::Guestfs now contains a version number which reflects the ABI that we are compiled against, ie. '0.<MAX_PROC_NR>'. This has the beneficial side effect of causing an error if the user tries to mix versions of the Perl module and the XS code. Sys::Guestfs::Lib now contains a synthetic version number which will reflect future changes in that module.
* New API: fill-pattern for creating files with predefined patterns.Richard Jones2010-05-122-2/+15
|
* launch: Rearrange the code so config check is first.Richard Jones2010-05-081-12/+12
| | | | | | | Move the config state check first in the guestfs_launch function, so that we don't reset g->launch_t or calculate the temporary directory in the case where the launch function will immediately return with an error.
* generator: FishAction is no longer used, remove this feature.Richard Jones2010-05-081-5/+1
|
* fish: Make 'launch' function static.Richard Jones2010-05-081-1/+1
| | | | | | This commit makes the launch function static and private to 'fish.c', and changes the generator so the function is no longer called for the 'run/launch' command.
* If qemu dies during launch, set an error message (RHBZ#588851).Richard Jones2010-05-071-4/+11
|
* daemon: Fix read-file so it fails gracefully for large files (RHBZ#589039).Richard Jones2010-05-071-1/+14
| | | | | | | | | | | | | | | | Pengzhen Cao noticed that read-file would fail for files larger than the protocol size; this is *not* the bug. However it would also lose protocol synchronization after this. The reason was that functions which return RBufferOut in the generator must not 'touch' the *size_r parameter along error return paths. I fixed read-file and initrd-cat, and I checked that pread was doing the right thing. This also adds regression tests for read-file with various categories of large file.
* daemon: Fix wc* commands to work on absolute symbolic links (RHBZ#579608).Richard Jones2010-05-071-1/+4
|
* daemon: Fix strings to work on absolute symbolic links (RHBZ#579608).Richard Jones2010-05-071-1/+4
|
* daemon: Fix head and tail commands to work on absolute symbolic links ↵Richard Jones2010-05-071-1/+4
| | | | (RHBZ#579608).
* daemon: Fix grep and related to work on absolute symbolic links (RHBZ#579608).Richard Jones2010-05-071-1/+4
|
* daemon: Fix checksum to work on absolute symbolic links (RHBZ#579608).Richard Jones2010-05-071-1/+4
|
* daemon: Fix hexdump to work on absolute symbolic links (RHBZ#579608).Richard Jones2010-05-071-1/+4
|
* Use link-local addresses between appliance and host (RHBZ#588763).Richard Jones2010-05-041-3/+3
|
* Change network configuration to use macros.Richard Jones2010-05-041-5/+25
| | | | | | | | | | | | | Change the network configuration so everything is set using some macros at the top of src/guestfs.c. Also, rename the macros used in the daemon so they are not the same. It was a very long time since these sets of macros had to match the ones defined in src/guestfs.c, despite what the comment said. Note that this commit should not change the semantics of the program at all.
* tests: In verbose mode, print dashes between each test.Richard Jones2010-04-301-0/+2
| | | | | Only affects tests when run with LIBGUESTFS_DEBUG=1. Lets you easily see when each test starts and ends.
* Document that guestfs_mount implies -o sync and performance problem ↵Richard Jones2010-04-301-3/+14
| | | | (RHBZ#587582).
* lvresize: Use --force so it can make LVs smaller (RHBZ#587484).Richard Jones2010-04-301-1/+8
| | | | This also adds a regression test for this bug.
* guestfs(3): Documentation on protocol gotchas.Richard Jones2010-04-291-0/+17
|
* docs: Routine refresh of the documentation for guestfs(3) and guestfish(1).Richard Jones2010-04-241-100/+96
|
* New API: checksums-out for checksumming many files.Richard Jones2010-04-232-2/+20
| | | | Useful API for verifying the integrity of virtual machines.
* generator: Update docs for checksum to point to checksum-device.Richard Jones2010-04-231-1/+3
|
* Check user doesn't run configure, make or make check as root.Richard Jones2010-04-201-0/+11
| | | | (Thanks to Yufang Zhang for helping to debug this issue).
* Document new version numbering policy.Richard Jones2010-04-201-0/+63
| | | | | | | | See discussion on mailing list: https://www.redhat.com/archives/libguestfs/2010-April/msg00005.html https://www.redhat.com/archives/libguestfs/2010-April/msg00057.html https://www.redhat.com/archives/libguestfs/2010-April/msg00058.html
* Document umask (RHBZ#582548, RHBZ#583554).Richard Jones2010-04-191-1/+18
|
* docs: Clarify documentation for mknod (RHBZ#582948).Richard Jones2010-04-191-0/+8
|
* New APIs: base64-in and base64-out for uploading/downloading base64 content.Richard Jones2010-04-192-1/+17
|
* New API: debug-upload (not a formal part of the API/ABI).Richard Jones2010-04-192-1/+12
| | | | | | | | | | | | Allow arbitrary files to be uploaded into the appliance, but only when --enable-debug-command is enabled. This lets you run shell scripts, like this: ><fs> debug-upload -<<EOF /tmp/script.sh 0700 #!/bin/sh - # ... EOF ><fs> debug sh "/tmp/script.sh"
* fish: Allow -<<END as a syntax for uploading "heredocs".Richard Jones2010-04-191-10/+12
| | | | | | | | | | | | For example: ><fs> upload -<<END /foo some data some more data END ><fs> cat /foo some data some more data
* Documentation: Use 'g' instead of 'handle' in documentation.Richard Jones2010-04-172-48/+53
| | | | | By convention we use 'g' for handles. Copy this convention through to all the documentation.
* In guestfs(3), unmount "/" directory in the example.Richard Jones2010-04-171-0/+1
|
* Add compilation/linking example to guestfs(3) man page.Richard Jones2010-04-171-0/+4
|
* generator: Use shortname in check_state() call.Richard Jones2010-04-171-1/+2
| | | | Saves a tiny bit of space in the library.
* Rerun generator if images/test.iso does not exist or has been updated.Richard Jones2010-04-171-1/+4
| | | | | The MD5 hash of this file is embedded in the output of the generator.
* Fix upload losing synchronization if root not mounted (RHBZ#576879).Richard Jones2010-04-171-13/+24
| | | | | | | | | | | | Modify the generator so that it can correctly handle early cancellation for Pathname|Device|.. parameters. This fixes the upload command, but consequently we need to fix the parameters for tar_in and t?z_in commands. This should also mean that 'win:' can now be used as the second argument of tar_in and t?z_in commands in guestfish, whereas previously this wouldn't have worked. Adds a regression test for the original problem.
* generator: Fix typo in a comment.Richard Jones2010-04-171-1/+1
|
* Improved checking, documentation of modes (RHBZ#582901, RHBZ#582929).Richard Jones2010-04-171-6/+22
| | | | | | | | | | | chmod: Disallow negative mode, document mode affected by umask. mkdir-mode: Disallow negative mode, document that filesystems may interpret the mode in different ways. mknod: Disallow negative mode, document mode affected by umask. umask: Check the range of umask mask value carefully.
* New API: get-umask, returns the current umask (RHBZ#582891).Richard Jones2010-04-172-2/+11
|
* Add a build test for the 'umask' command.Richard Jones2010-04-171-3/+2
|
* fish: Print output from some commands in octal/hex as approp. (RHBZ#583242).Richard Jones2010-04-171-5/+33
|
* Documentation: lvcreate should say 'logical volume' (RHBZ#582953)Richard Jones2010-04-171-2/+2
|
* New API: Add aug-clear call for clearing an Augeas node.Richard Jones2010-04-132-2/+14
|
* New API: lvresize-free to extend LVs into percentage of free space.Richard Jones2010-04-122-1/+16
|
* Documentation updates.Richard Jones2010-04-111-0/+13
| | | | | | | Fix copyright years. Fix URLs to point to new PRC site. Make sure guestfish(1) and guestfs(3) manpages reference the current list of tools.
* New API: checksum-device for checksumming devices.Richard Jones2010-04-102-1/+11
| | | | Analogous to the usual 'checksum' call.
* New partition APIs: part_del, part_get_bootable, part_get/set_mbr_idRichard Jones2010-04-102-1/+56
| | | | These APIs flesh out further the partitioning API.
* Documentation: Clarify documentation on the bootable flag.Richard Jones2010-04-101-4/+3
|