| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
(RHBZ#859875).
(cherry picked from commit 911a16a9fa965ce8defb3307f6bf338f5d2d5c94)
(cherry picked from commit ea09c6e889b57aab8d2989dba4821a66785ad991)
|
|
|
|
|
|
| |
This is just code motion.
(cherry picked from commit c34dcf184ef4eaa35634d1696e0c68d21b811170)
(cherry picked from commit 44d69a19f56f57843ad5b6382bcfca19e99b8af1)
|
|
|
|
|
|
|
|
| |
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)
|
|
|
|
|
|
|
|
|
|
|
|
| |
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)
|
|
|
|
|
|
|
|
|
|
|
|
| |
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)
|
|
|
|
| |
(cherry picked from commit 2a87261dfc830cd6bcb44aa1628d955cb6423bd7)
|
|
|
|
| |
(cherry picked from commit 1fb95e65661f19c050b928694f750f2406eff2ac)
|
|
|
|
|
|
| |
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)
|
|
|
|
| |
(cherry picked from commit fc86db3b3bcd884ee37cef79e22b0324df9fcae6)
|
|
|
|
|
|
|
| |
This will allow us to easily change the location of this
script in future.
(cherry picked from commit f2ea617e224cd82496e56a41b5878063d6f02e3d)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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)
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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)
|
|
|
|
| |
(cherry picked from commit ee9ab52bc3e087f63dcc51d3b6ac5c79277425e1)
|
|
|
|
| |
(cherry picked from commit 216a6d16abdfbc36a5514df34f59507ef825e33e)
|
|
|
|
|
| |
This is just code motion.
(cherry picked from commit 79bf966ceaa3508698f19bdc951ffc51693eb499)
|
|
|
|
|
| |
Not used at present.
(cherry picked from commit 39d79e677b684dfd49c852ee7ce4c4bf3d5cf56f)
|
|
|
|
|
|
|
|
| |
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)
|
|
|
|
| |
(cherry picked from commit 5ea27d740eb9a7a2fe666dd9ffa70114c0c42756)
|
|
|
|
|
|
|
|
|
|
|
| |
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)
|
|
|
|
| |
(cherry picked from commit 4504f424f5589f81086f5250674b55708e162e5f)
|
|
|
|
|
|
| |
files (RHBZ#788641).
(cherry picked from commit 7c21e49c2c83092e9fd5f40c43a03c764a6d3663)
|
|
|
|
|
|
|
|
| |
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)
|
|
|
|
|
| |
This is just code motion.
(cherry picked from commit ca80e4490463d646de4504fc2bcb4e4a722bedb8)
|
|
|
|
|
|
|
|
|
|
|
|
| |
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)
|
| |
|
| |
|
|
|
|
| |
(Includes fix by RWMJ)
|
| |
|
|
|
|
| |
Update all copyright dates to 2012.
|
|
|
|
|
|
| |
Ensure that the drv structure is always zeroed on allocation.
Don't leak old drv->device when add_drives is called multiple times.
|
|
|
|
|
|
| |
Handle SIGQUIT by guestfish, so that it can't be terminated.
Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
|
| |
|
| |
|
|
|
|
|
| |
Various messages were added and changed when this variable was set
while tests were running.
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
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>
|
|
|
|
|
|
|
|
| |
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)
|
| |
|
|
|
|
| |
inspection (RHBZ#760775).
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
This also frees the list returned by guestfs_list_filesystems.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
This isn't really necessary, but it keeps valgrind happy.
|