| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
| |
fuse_main can return any non-zero value on error. In particular on
certain sorts of error such as unsupported -o options it returns 1
(not -1).
Therefore make sure any non-zero return is turned into EXIT_FAILURE.
(Thanks Pádraig Brady)
(cherry picked from commit ae45cee728039d7724fc73e5ffb2550c8054d268)
|
|
|
|
|
|
|
|
|
| |
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)
(cherry picked from commit 54e91da925323642e67b8ce4b95899fe4b7a51c4)
|
|
|
|
|
|
|
|
|
|
|
| |
This also adds comprehensive tests for utimens on regular files,
directories (RHBZ#761451), named pipes (RHBZ#761460), symbolic links,
block and char devices.
Note that there is a small change in the (previously undefined)
semantics of this call: It now sets the time on a symbolic link
itself, not on what the symbolic link points to.
(cherry picked from commit 19e2f5aa4fd4ed70b505661d918b5575616ad441)
|
|
|
|
|
|
|
| |
You don't need to open the file O_WRONLY in order to call futimens on
the file descriptor. Opening it O_WRONLY fails for directories.
Therefore open O_RDONLY instead.
(cherry picked from commit 31fba8d8033216f8a288e75fe3f575b73b9ef925)
|
|
|
|
| |
(cherry picked from commit 98edfac1ee70bcf15ee7caebc306e11cdbbb0d9a)
|
|
|
|
|
|
| |
inspection (RHBZ#760775).
(cherry picked from commit 7d3848ddc046f79cc1112809bd9970eea8060018)
|
|
|
|
| |
(cherry picked from commit 41a7a68cf33a174ba950aa29951a07c391a16b4d)
|
| |
|
|
|
|
| |
(cherry picked from commit 43942b08cfbcf91bef29ec532f3d097a8519c982)
|
|
|
|
| |
(cherry picked from commit 2972987d0257d9c3d26b53f961e802d121b436cd)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Augeas 0.10 depends on libxml2, so this is now required in the
appliance (in fact, it was already present).
However this exposed two bugs:
(1) In libguestfs we use a home-brewed recipe for Augeas flags,
resulting in this error:
/usr/include/augeas.h:24:25: fatal error: libxml/tree.h: No such file or directory
(2) Augeas's own augeas.pc didn't include the libxml2 flags, so
it was broken. This requires a patch to Augeas 0.10, see:
https://www.redhat.com/archives/augeas-devel/2011-December/msg00008.html
Change to using pkg-config to detect Augeas. It is still an optional
library.
(cherry picked from commit 615924abaa968398d6529529fa2f31ae23de825b)
|
|
|
|
| |
(cherry picked from commit b7addee24d211014086c44bcef6a0c799e4fb987)
|
|
|
|
| |
(cherry picked from commit 655f8037def7742a608fb272004eec51424ac31d)
|
|
|
|
|
|
|
|
|
| |
Just add the -f option to mkfs.xfs to make sure we can
make a xfs filesystem when the device already has a
filesystem on it.
Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
(cherry picked from commit 1970a14178b5c53569965d35e54efead6c4c4bdc)
|
| |
|
|
|
|
|
|
|
|
|
| |
documentation
Since some modules (`getopt', for example) may copy files
into the build directory, `top_builddir/lib' is needed as well as
`top_srcdir/lib'. -- GNU Gnulib manual, section 2.2 Initial import
(cherry picked from commit 1a35ca59088e572c11633e85524bb282cb436186)
|
|
|
|
| |
(cherry picked from commit ce331df0f1857bccebaaddfac79677bc9f527197)
|
|
|
|
| |
(cherry picked from commit e7e3a32edc29e3448b1d7efb3f6b53c5173c4e9c)
|
|
|
|
| |
(cherry picked from commit 00c9755ee3bea98968acea47bac858db94f7fbe2)
|
|
|
|
| |
(cherry picked from commit eb7ec6170eca278fb910e18ca1f7ca81c6b507c0)
|
|
|
|
| |
(cherry picked from commit efef3e3c1205e5476044f41fb88385e3ba07468d)
|
|
|
|
| |
(cherry picked from commit 27d00960c93b26c68fa1f4068502c32a6e3b5e94)
|
|
|
|
| |
(cherry picked from commit cee513112adcf4084d6be9e3b5037b7b54c9f514)
|
|
|
|
|
|
|
|
|
| |
This adds the virt-sparsify --debug-gc option which causes
virt-sparsify to call Gc.compact before exiting, allowing
GC and memory problems to be tested.
Add an extratest which runs virt-sparsify under valgrind.
(cherry picked from commit 14b1e7b963cd5446ab76a067085b91925dd5d3e3)
|
|
|
|
|
|
|
|
|
| |
This adds the virt-resize --debug-gc option which causes
virt-resize to call Gc.compact before exiting, allowing
GC and memory problems to be tested.
Add an extratest which runs virt-resize under valgrind.
(cherry picked from commit 7708d3e04f6ec3985fd74ee1a44a5615d43065e2)
|
|
|
|
| |
(cherry picked from commit 082a55f76cd61f3590976f6b095552ea65259ced)
|
|
|
|
|
|
|
|
| |
RBufferOut binding didn't free the buffer after copying it onto
the OCaml heap.
Found by valgrind.
(cherry picked from commit 6bd0eec12f2e39360847bfe7a9f50628cc89ed8e)
|
|
|
|
| |
(cherry picked from commit e1f395defc6db5bbc82537af6e517d94216b7d4b)
|
|
|
|
| |
(cherry picked from commit d81c0829ea4a99aadb98df37be9543a973269041)
|
|
|
|
| |
(cherry picked from commit aa4eb4cd109dda0dc7dfdd66a5163a18b0be2277)
|
|
|
|
|
| |
This is just code motion.
(cherry picked from commit 6ccae55ddcf0c08cd1b1cdbc07afeed043ad410d)
|
|
|
|
| |
(cherry picked from commit c5dbb1e63a8e0c45c7088dd2e58f5abbcfc30620)
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
(cherry picked from commit f5bfc68fdb3e25b9d75c65e3f5e88983584b25ed)
|
|
|
|
|
| |
This also frees the list returned by guestfs_list_filesystems.
(cherry picked from commit 450134501c37f1dd1b898dc390591a3f84ec18b4)
|
| |
|
|
|
|
| |
(cherry picked from commit b5b4816ab006ce09b7a7103dbe87b3129046648d)
|
|
|
|
|
| |
This updates commit c55bad93fbde03a3daa6058913f02098c45e55f5.
(cherry picked from commit be7cb789069afc93e7c1b0e7a1a9a293dc846d45)
|
|
|
|
|
|
| |
export SKIP_TEST_LAUNCH_RACE_PL=1
will cause this test to be skipped.
(cherry picked from commit 3bbcbd5eeadabb1cc5a40b2f8ae586e6aafd39c6)
|
|
|
|
|
|
| |
These tests are optional, and require a special environment and
tools to run.
(cherry picked from commit c55bad93fbde03a3daa6058913f02098c45e55f5)
|
|
|
|
|
|
| |
If you enabled debugging (eg. LIBGUESTFS_DEBUG=1) then every
debug message printed would be leaked.
(cherry picked from commit dd76ce2b4c93dd10d8eca9ab7c77bc831f103d03)
|
|
|
|
| |
(cherry picked from commit bfc0a5f58d3cb6faad5a44bed392f33190e62246)
|
|
|
|
| |
(cherry picked from commit cd3d28491dd19d25a6c04a8bc6a7ec94bded413b)
|
|
|
|
|
|
|
| |
This is the minimum alignment. 1MB would be better.
Note that the exact behaviour is not defined in the API.
(cherry picked from commit c4381dba737d5cb8aad8e1b2e2123b0fcaff1d1a)
|
|
|
|
|
|
| |
In particular, virt-alignment-scan -a /dev/null would segfault
because of an error returned by parted.
(cherry picked from commit 7b192f5a672197ad67ac23501e420c674aa2f3a9)
|
|
|
|
|
| |
This change is in support of the addition of MD support to fstab inspection.
(cherry picked from commit 373dca7d12a8741e116205b4a3ac67a7d82cc782)
|
|
|
|
| |
(cherry picked from commit 011a248381cacd6751deb1d1be122cc9bd6aba09)
|
|
|
|
| |
(cherry picked from commit c8cb3d27b62da20be6b2fa06f1ce6b63a722c32b)
|
|
|
|
| |
(cherry picked from commit 34c0542189a443e57f2b09886f31b5bdad404bbf)
|
|
|
|
|
| |
This change allows the run scripts of virt-v2v and libguestfs to be chained.
(cherry picked from commit 252ad4aa41c213948e4ee1f01e6c7ff7861f75e3)
|