summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* New API: vgscanRichard Jones2010-04-101-0/+8
| | | | | Implement vgscan to allow for a full rescan of all LVM PVs, VGs and LVs.
* New API: ntfsresize.Richard Jones2010-04-101-0/+8
| | | | | This implements the ntfsresize operation, using the external program from ntfsprogs.
* If qemu dies during launch in "null vmchannel" mode, don't hang (RHBZ#579155).Richard Jones2010-04-081-1/+9
| | | | | | Detect if qemu dies during launch by wait(2)-ing for it, and then getting EOF on the qemu pipe. This was broken in null vmchannel mode, causing a hang.
* Don't kill self accidentally.Richard Jones2010-04-081-3/+3
| | | | | | Always check that pid > 0 before calling kill (pid, 9). The issue was that sometimes pid == 0, and this ends up killing ourselves.
* Fix for "warning: unexpected connection from UID ..."Richard Jones2010-04-081-0/+1
| | | | | | | | This warning is currently a fatal error. The code attempts to retry the accept call, but because we don't reset sock = -1 the retry doesn't happen and it dies anyway. Set sock = -1 so the retry attempt can happen.
* New API calls to upload/download txz files (RHBZ#580556).Richard Jones2010-04-082-3/+21
|
* fish: Print extended help when the user types an unknown command first.Richard Jones2010-04-071-0/+2
| | | | | | | | $ guestfish /tmp/disk.img /tmp/disk.img: unknown command Did you mean to open a disk image? guestfish -a disk.img For a list of commands: guestfish -h For complete documentation: man guestfish
* New API: guestfs_zero_device to zero whole devices.Richard Jones2010-03-312-2/+11
|
* tests: Move alarm(2) calls to the correct place in the tests.Richard Jones2010-03-271-3/+3
| | | | This is a re-fix for RHBZ#505329.