| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
|
|
|
|
| |
Previously we had separate code paths for echoing commands (-x)
and tracing (guestfs_set_trace). This just unifies that so that
the guestfish -x option enables tracing.
(cherry picked from commit 8e007581c91a5193e6aec0f6f9aeb379a935c9d4
and commit a96d70113ffcd01f55262c3d0fbe711bee759fec
and commit 87eecb507ee09a62f3a12f5f75d3417a09c0c8d4 which are all
logically part of the same fix)
|
|
|
|
| |
(cherry picked from commit b52ef0b021fc443d88d4d9c43f57468712e40965)
|
|
|
|
| |
(cherry picked from commit fc6dd9daa13ac774156d0822b5aa7830171feb85)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
(cherry picked from commit 42f59b28f123f53ae038df23a9abee08e959e46b)
|
|
|
|
| |
(cherry picked from commit 4839d5142ca50818965866287932f9ded14729e6)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
(cherry picked from commit 8a9f2ca65521d093ac14307aca4370d9497ac840)
|
|
|
|
|
|
| |
Only affects tests when run with LIBGUESTFS_DEBUG=1. Lets you easily
see when each test starts and ends.
(cherry picked from commit 097266e01cfa28319834bf750649650f3c22006f)
|
| |
|
|
|
|
|
|
| |
(RHBZ#587582).
(cherry picked from commit fd2d10d6ed91f417a9b99bb61526b45bb7ed3e4e)
|
|
|
|
| |
(cherry picked from commit 90b4e24df6f27c02d3b11d8021b27a197cf18b75)
|
|
|
|
| |
(cherry picked from commit 2f9f3375028a02fdaec62f30e11bacd6524a342c)
|
|
|
|
|
| |
This also adds a regression test for this bug.
(cherry picked from commit c24de46d06cc3ecccf00bfaaffb06172659cdd0a)
|
|
|
|
| |
(cherry picked from commit 25c15261253bbd2fb140e5ca1c902acf714f76a9)
|
|
|
|
| |
(cherry picked from commit 55641f5d1e9964f8a039005b511b8e688c92cddb)
|
|
|
|
|
|
|
| |
For stable branch:
- cherry picked from commit ce95be8b185ce69
- updated the patch so it doesn't refer to any new guestfish features
in the 1.3 branch
|
| |
|
|
|
|
| |
(cherry picked from commit 7c285ea84f63e511f95a3c8bfbb98cbf99b9466b)
|
|
|
|
|
|
|
| |
This shouldn't change the semantics of the program.
For stable-1.2 this was cherry picked from commit af29c84 and
rebased against the older code in daemon/checksum.c.
|
|
|
|
| |
(cherry picked from commit 6e269c6e5123c1558589e0a59844dc0187fbd63a)
|
|
|
|
| |
(cherry picked from commit 2ed549e95c7ad75f28b5f0dd4c53849e1607444e)
|
|
|
|
| |
(cherry picked from commit 89486c50eaeb8b1cc5a6ff388cb47e859f8565d1)
|
|
|
|
| |
(cherry picked from commit e3e67f63b0a6ce952ba92cb966b8ac5ef239dcf9)
|
|
|
|
|
| |
loop is sometimes a module, for example on RHEL 5.
(cherry picked from commit 75d9c056b2db9ceedef9eca64e67ad3350eabad8)
|
|
|
|
|
|
| |
If a problem in the package database prevented package enumeration from working,
inspection would die. This change makes it emit a warning and continue.
(cherry picked from commit 39416cdb11bb2005915ed293eafb3cc6d714416d)
|
|
|
|
|
|
| |
This fixes a problem where inspection would die if grub.conf referenced a
non-existent initrd. Just return an empty initrd instead.
(cherry picked from commit 2b43970c8c97f24b1f45c040c6963d30661fa514)
|
|
|
|
|
|
|
|
| |
Although these modules are optionally used by the Perl tests,
they aren't necessary and won't break the build if they are not
there. These modules aren't available in RHEL 5. Therefore
remove these checks.
(cherry picked from commit c8f302a17453ad58acccd137342438795763606a)
|
|
|
|
|
| |
(Thanks to Yufang Zhang for helping to debug this issue).
(cherry picked from commit 199f218bf431b77c12a728f7072bed1553a0f0af)
|
|
|
|
|
|
|
|
| |
'dd' is a very inefficient way to create files. 'truncate' is
better, but unfortunately that command is not available in RHEL 5.
So use the guestfish 'sparse' command instead (which also avoids
allocating disk space).
(cherry picked from commit 175c01d2336c07113f1c2966966957de5c344e3a)
|
|
|
|
|
|
|
|
|
| |
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
(cherry picked from commit 54a8f8f30de2f3132da97c54d07ca4639c405de1)
|
| |
|
| |
|
|
|
|
| |
(cherry picked from commit c2a8efc548d6f997049cbb3d63bab360b0d946b6)
|
|
|
|
| |
(cherry picked from commit 42e43db927dac13da0afe6dba39708295eb06021)
|
|
|
|
| |
(cherry picked from commit 92d38b9ae3a0b1b4694da5e3d3a3cb155842cd91)
|
|
|
|
| |
(cherry picked from commit e55400960a6a06eb6dc16ea96f3c30ed580d3d3a)
|
|
|
|
| |
(cherry picked from commit abb7365d4df7b945846a9f6189bbbd70e10122d1)
|
|
|
|
|
|
| |
todo list
(cherry picked from commit 398e6830a34e916c52cd23ba6d0b4c00602dfc61)
|
|
|
|
|
|
| |
No one cares for PPC, and if they do they should file these
as bugs in the bug tracker.
(cherry picked from commit 3b759fe7fe568a3d643ee99e0aef0adaf163d1e5)
|
|
|
|
| |
(cherry picked from commit fc50bf2680d4ed653ff00d390cd7a17ebeb22cf2)
|
|
|
|
|
|
| |
By convention we use 'g' for handles. Copy this convention
through to all the documentation.
(cherry picked from commit 2e0f3ed54b978925c79ca0d33e76bec338b23631)
|
|
|
|
| |
(cherry picked from commit 6e4bf8e278f5c8bd28eba7152d2f11d1e537ee1b)
|
|
|
|
| |
(cherry picked from commit 4680c732585b2c2d292f521f393215c7943096fa)
|
|
|
|
| |
(cherry picked from commit 09a0427448b1f4328b9246d4d8a26610bb5228c8)
|
|
|
|
| |
(cherry picked from commit 68467cb1c2f8b1cc7844ed6512b7f76ef2aba1d1)
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
(cherry picked from commit 61ab83d19009a8006dd73ebe16d22494b78be4d1)
|
|
|
|
|
|
| |
I also rechecked the list of built-in commands against
the actual commands to make sure no others were omitted.
(cherry picked from commit 42fc0e02b094ef3b19dae115276a0a33116af6d5)
|
|
|
|
| |
(cherry picked from commit 116d497c68c2e57f6e92abf8834112a794a145f0)
|
|
|
|
| |
(cherry picked from commit e64c1e5aacd605ea177972e56ede5be22ae13d4f)
|
|
|
|
|
|
|
|
|
| |
guestmount.c: In function 'main':
guestmount.c:899: error: implicit declaration of function 'setlocale'
[-Wimplicit-function-declaration]
guestmount.c wasn't including locale.h.
(cherry picked from commit c0d73e0e60b99b87855364ff346551f5ff7efccb)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Allow -cmd on the command line to mean that normal exit on error
behaviour is overridden, ie. we will not exit.
This allows you to do:
guestfish -- command : -command : command
with the second command allowing errors. (Note that '--' is required
to stop getopt parsing -command as an option).
Also this fixes the remote case which is what the original
bug report was about.
(cherry picked from commit ad752b80d7fa064b7bdd3d4c8d47c95d79265b58)
|