summaryrefslogtreecommitdiffstats
path: root/fish
Commit message (Collapse)AuthorAgeFilesLines
* fish: progress bar: Send interactive progress bar output to /dev/tty ↵Richard W.M. Jones2012-10-301-18/+36
| | | | | | | (RHBZ#859875). (cherry picked from commit 911a16a9fa965ce8defb3307f6bf338f5d2d5c94) (cherry picked from commit ea09c6e889b57aab8d2989dba4821a66785ad991)
* fish: inspect: Move variable decls to top of function.Richard W.M. Jones2012-10-301-3/+6
| | | | | | This is just code motion. (cherry picked from commit c34dcf184ef4eaa35634d1696e0c68d21b811170) (cherry picked from commit 44d69a19f56f57843ad5b6382bcfca19e99b8af1)
* syntax: Use __PATTERNS__ instead of @PATTERNS@ in podwrapper man pages.Richard W.M. Jones2012-10-302-4/+4
| | | | | | | | It is slightly dangerous to use @PATTERNS@, since these might be substituted by autoconf when they appear in Makefile.am files. (cherry picked from commit 4a4ca0c01da3307b69fc4925c5f2ece1e728d4b3) (cherry picked from commit f346abfb412b772d57da1c58037bce7120534814)
* podwrapper: Add --license parameter, which is required.Richard W.M. Jones2012-08-301-0/+5
| | | | | | | | | | | | This adds standard LICENSE and BUGS sections to all of the man pages that are processed by podwrapper. Modify all the calls to $(PODWRAPPER) to add the right --license parameter according to the content. Note that this relaxes the license on some code example pages, making them effectively BSD-style licensed. (cherry picked from commit 2f97bf873b64384835f257f8916bf1ebb2af62b4)
* man pages: Ensure consistent copyright/author sections, remove licenseRichard W.M. Jones2012-08-305-79/+4
| | | | | | | | | | | | section. Ensure each man page contains consistent COPYRIGHT and AUTHOR sections. Remove the LICENSE section. We will add that back in podwrapper in a later commit. (cherry picked from commit f1d98bbc79496947210ee0305f80440ed8557ec1)
* fish: Fix 'copy-out /' (RHBZ#845522).Richard W.M. Jones2012-08-051-0/+16
| | | | (cherry picked from commit 2a87261dfc830cd6bcb44aa1628d955cb6423bd7)
* fish: Use minimal permissions when initially creating history fileMatthew Booth2012-08-051-1/+1
| | | | (cherry picked from commit 1fb95e65661f19c050b928694f750f2406eff2ac)
* fish: Rename fish/virt.c to fish/domain.cRichard W.M. Jones2012-08-052-2/+2
| | | | | | This file handles the -d option for guestfish and other C command line utilities. Renaming this file makes it less confusing. (cherry picked from commit 6054051a9d8a5eee4141ca4b12aa5b7d1f36f56d)
* build: Return 77 from skipped tests.Richard W.M. Jones2012-08-052-2/+2
| | | | (cherry picked from commit fc86db3b3bcd884ee37cef79e22b0324df9fcae6)
* build: Change calls to podwrapper.sh to use $(PODWRAPPER).Richard W.M. Jones2012-08-051-5/+5
| | | | | | | This will allow us to easily change the location of this script in future. (cherry picked from commit f2ea617e224cd82496e56a41b5878063d6f02e3d)
* New API: guestfs_shutdown: Cleanly shutdown the backend.Richard W.M. Jones2012-07-073-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | The new API splits orderly close into a two-step process: if (guestfs_shutdown (g) == -1) { /* handle the error, eg. qemu error */ } guestfs_close (g); Note that the explicit shutdown step is only necessary in the case where you have made changes to the disk image and want to handle write errors. Read the documentation for further information. This change also: - deprecates guestfs_kill_subprocess - turns guestfs_kill_subprocess into the same as guestfs_shutdown - changes guestfish and other tools to call shutdown + close where necessary (not for read-only tools) - updates documentation - updates examples (cherry picked from commit ffbf1475f7ae7c462db289ad4834391469e72edd)
* tests: Replace truncate command with 'guestfish sparse'.Richard W.M. Jones2012-06-212-2/+8
| | | | | | | | | | | | | RHEL 5 didn't have the truncate command, but we can replace: truncate -s SIZE FILE with the roughly equivalent command: guestfish sparse FILE SIZE Cherry picked from commit 39df80dcc0e485e69048bddbf33c259ce532e50d and backported to libguestfs 1.16 branch.
* fish: Change test-escapes so test is not endian-sensitive.Richard W.M. Jones2012-06-211-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | The test used the external 'od' command to compare the output of guestfish with what it's supposed to be. Unfortunately by default this outputs groups of 2-byte words, with the words' endianness affected by the current hardware endianness. For example: x86-64$ echo -n ab | od 0000000 061141 0000002 ppc64$ echo -n ab | od 0000000 060542 0000002 By using 'od -b' instead we can output bytes instead of words, and there is no endianness issue, and the output is clearer: x86-64$ echo -n ab | od -b 0000000 141 142 0000002 ppc64$ echo -n ab | od -b 0000000 141 142 0000002 (cherry picked from commit 20137c8731d142797e2476e35fe724c95a8a7a06)
* fish/mount: Add better error message when -m (mount) fails (RHBZ#824043).Richard W.M. Jones2012-06-011-6/+14
| | | | (cherry picked from commit ee9ab52bc3e087f63dcc51d3b6ac5c79277425e1)
* fish: Remove inaccurate comment from code.Richard W.M. Jones2012-06-011-4/+0
| | | | (cherry picked from commit 216a6d16abdfbc36a5514df34f59507ef825e33e)
* fish: Move 'feature_available' function to global.Richard W.M. Jones2012-05-143-20/+20
| | | | | This is just code motion. (cherry picked from commit 79bf966ceaa3508698f19bdc951ffc51693eb499)
* fish: Add opaque field to the drives list for programs to use.Richard W.M. Jones2012-05-011-0/+5
| | | | | Not used at present. (cherry picked from commit 39d79e677b684dfd49c852ee7ce4c4bf3d5cf56f)
* maint: fix doc typosJim Meyering2012-04-241-3/+3
| | | | | | | | Fix typos spotted by http://github.com/lyda/misspell-check. * configure.ac: As above. * ocaml/examples/guestfs-ocaml.pod: Likewise. * fish/guestfish.pod: Likewise. (cherry picked from commit e97b6a1bb15e8cad319dceff53c58f8267e8152f)
* fish: Fix compilation when libconfig is not available.Richard Jones2012-03-301-2/+2
| | | | (cherry picked from commit 5ea27d740eb9a7a2fe666dd9ffa70114c0c42756)
* fish: Rename tests and make test paths relative.Richard W.M. Jones2012-03-1315-49/+49
| | | | | | | | | | | When these tests were originally in the old regressions/ directory, they used to refer to guestfish via the path '../fish/guestfish'. Some of the tests were also called 'test-guestfish-*'. Now that the tests have been moved into the fish/ directory, neither of these things make sense. So change the relative path to './guestfish' and rename all 'test-guestfish-*' as 'test-*'. (cherry picked from commit 1f603bfd6d7cd17e88f737a496b7e5ee053750c2)
* dist: Distribute all tests, even when configured with --disable-appliance.Richard W.M. Jones2012-03-081-1/+16
| | | | (cherry picked from commit 4504f424f5589f81086f5250674b55708e162e5f)
* fish: edit: Preserve permissions, UID, GID, SELinux context when editing ↵Richard W.M. Jones2012-02-102-1/+92
| | | | | | files (RHBZ#788641). (cherry picked from commit 7c21e49c2c83092e9fd5f40c43a03c764a6d3663)
* fish: In edit command, upload to a new file.Richard W.M. Jones2012-02-104-3/+110
| | | | | | | | If the upload fails, this means we don't leave a partially written file. Also add a test for the edit command. (cherry picked from commit ddae5abf80f65fc149eec253f14f073d397b49c2)
* fish: Refactor error handling in the 'edit' command.Richard W.M. Jones2012-02-101-24/+17
| | | | | This is just code motion. (cherry picked from commit ca80e4490463d646de4504fc2bcb4e4a722bedb8)
* fish: Fix 'test-guestfish-escapes.sh' when running an alternate guestfish ↵Richard W.M. Jones2012-01-291-12/+16
| | | | | | | | | | | | binary. The error messages would be prefixed by the path to the alternate binary, eg: ../fish/guestfish: invalid escape sequence in string (starting at offset 0) Fix this by normalizing the messages further. (cherry picked from commit 09227c9d664ca21b47b65c2fcd8fa2ddc485b554)
* fish: Filter out error messages about history file in test scriptHilko Bengen2012-01-231-1/+1
|
* Do not run appliance-related checks if not building applianceHilko Bengen2012-01-231-3/+7
|
* Replace setting of environment variables with usage of local run scriptHilko Bengen2012-01-231-3/+1
| | | | (Includes fix by RWMJ)
* fish: Remove hard-coded path from test scriptHilko Bengen2012-01-201-1/+1
|
* Tempus fugit.Richard W.M. Jones2012-01-1813-14/+14
| | | | Update all copyright dates to 2012.
* fish options parsing: Allow add_drives to be called multiple times.Richard W.M. Jones2012-01-183-10/+11
| | | | | | Ensure that the drv structure is always zeroed on allocation. Don't leak old drv->device when add_drives is called multiple times.
* fish: fix the Ctrl-\ causes guestfish to abort bug(RHBZ#596761)Wanlong Gao2012-01-041-0/+1
| | | | | | Handle SIGQUIT by guestfish, so that it can't be terminated. Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
* fish: mount can be used instead of mount-options with libguestfs >= 1.14Richard W.M. Jones2011-12-231-1/+1
|
* fish: Fix --format parameter in man page.Richard W.M. Jones2011-12-231-1/+1
|
* fish: Fix test-guestfish-events.sh so it works when LIBGUESTFS_DEBUG=1 is set.Richard W.M. Jones2011-12-231-7/+1
| | | | | Various messages were added and changed when this variable was set while tests were running.
* tests: Split images -> tests/data + tests/guestsRichard W.M. Jones2011-12-224-7/+7
|
* tests: Split regressions -> various subdirectories of tests/Richard W.M. Jones2011-12-2214-0/+822
|
* fish: Allow events to be processed in guestfish.Richard W.M. Jones2011-12-165-0/+292
| | | | | | | | Add 'event', 'list-events' and 'delete-event' commands so that event handlers can be registered, listed and deleted in guestfish. The event handler is a shell script snippet or host command. Cc: Pádraig Brady <P@draigBrady.com>
* fish: -i option should fail if / is not mountable, but warn about others.Richard W.M. Jones2011-12-091-1/+7
| | | | | | | | In particular this stops a problem with guestmount where if the -i option half-recognizes the guest OS, it would mount the disk (and fail, giving only warnings), leaving the mountpoint unusable. (Thanks Pádraig Brady)
* copy-in/copy-out: Wait for the tar subprocess only (RHBZ#760669).Richard W.M. Jones2011-12-071-26/+35
|
* fish: Improve error messages when no OS / multi-boot OS found with ↵Richard W.M. Jones2011-12-071-2/+30
| | | | inspection (RHBZ#760775).
* Fix rpcgen post-processing for out-of-tree buildsHilko Bengen2011-12-061-1/+1
|
* fish: When -m option fails, canonicalize device names that are printed.Richard W.M. Jones2011-11-281-0/+15
| | | | | | | | | | | The error message now looks like this: guestfish: '/dev/vda6' could not be mounted. Did you mean one of these? /dev/sda1 (ext4) /dev/vg_f15x32/lv_root (ext4) /dev/vg_f15x32/lv_swap (swap) Note that '/dev/sda1' has been canonicalized.
* fish: Rearrange code for displaying mountpoints when -m option fails.Richard W.M. Jones2011-11-281-12/+33
| | | | This also frees the list returned by guestfs_list_filesystems.
* fish: Add MD devices to guestfish device autocompletion.Matthew Booth2011-11-211-0/+3
|
* Update FSF address.Matthew Booth2011-11-0841-41/+41
|
* fish: Use size_t instead of int when counting strings.Richard W.M. Jones2011-11-011-4/+4
|
* fish and other tools: -d option uses readonlydisk="read" (RHBZ#747290).Richard W.M. Jones2011-10-261-0/+3
| | | | | | Tools like virt-edit would not be able to edit disks marked as <readonly/> in the libvirt XML. It's not clear if this is a bug or a feature.
* Flush stdout for progress bars used by guestfish, virt-resize.Richard W.M. Jones2011-10-261-0/+1
|
* valgrind: guestfish -i: free strings before exit.Richard W.M. Jones2011-10-191-0/+2
| | | | This isn't really necessary, but it keeps valgrind happy.