| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
| |
(cherry picked from commit dd216fedbdacfd641c2da4073ae26d3ccb6098a6)
|
|
|
|
|
| |
For our purposes, the two tools are compatible.
(cherry picked from commit 87de36670108a19b832e8f5ded8d413e7b575d70)
|
|
|
|
| |
(cherry picked from commit 60a2f8706b305b4068df020598abee9566022e20)
|
|
|
|
| |
(cherry picked from commit d43e3d63de1622e98313bb797922dfd7d95ddd11)
|
|
|
|
|
| |
Thanks Alasdair Kergon.
(cherry picked from commit 998ebc333dbfe40c5953e36fb42f9610727a7532)
|
|
|
|
|
|
|
|
| |
Sort the device names correctly, not just treating them as
strings. As a result, /dev/sdz < /dev/sdaa.
Cherry picked from commit c0a087b8236755e95371d5c352c9d29a3ca992c0
and backported to libguestfs 1.16.
|
|
|
|
| |
(cherry picked from commit cef979b2897725b735c68f5b806d332f4cea864d)
|
|
|
|
|
| |
Use a small sed script to canonicalize the device names.
(cherry picked from commit 320adf477805f703b0a1c79d86c3fb4078d11700)
|
|
|
|
| |
(cherry picked from commit 9a5c0d39081f9f40d7ad12fbb55fb6120046679c)
|
|
|
|
|
|
| |
Hard-coding it breaks virtio-scsi because the devices are called
/dev/sda etc.
(cherry picked from commit 7509cdf18e6d3fd96b10246f4d0417e5285e38f6)
|
|
|
|
|
|
|
|
|
|
|
| |
Apparently e2fsprogs only knows that "/dev/sda" is a whole device, but
doesn't think that "/dev/vda" is. On switching the default device
over to virtio-scsi, that causes mke2fs without -F option to complain
and ask for an interactive prompt. Adding -F forces it to go ahead
anyway.
This caused several less-used APIs to break with virtio-scsi.
(cherry picked from commit 62c5b6db58911a5e51f59965619355437b7a7214)
|
|
|
|
| |
(cherry picked from commit 251b131e0a55cce21f6ee2240315903e34c4ffe1)
|
|
|
|
|
|
| |
The output of this test depends on page size, so on ppc64
it returns 64K.
(cherry picked from commit 42475dd21fbdc551137fe815efadf08a87729642)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Since RHBZ was updated, the old python-bugzilla program broke. When
it was fixed, I found the (undocumented) ordering of the results from
the old tool was no longer true.
This commit adds a small Perl script to sort the output predictably.
Now bugs are sorted by both bug state and bug number, so the output
should be more stable than before.
Re-enable creation of the BUGS file in 'make dist'
(this reverts commit 91f3456244e7843768da659e24ce0aeeb4ebe4b0).
Also the BUGS file has been updated.
Cherry picked from commit f90c01a5dc6a01284debdd0a45406f9d4a5e7159
and backported to libguestfs 1.16 branch. Note the BUGS file has
been deleted, and will be updated at the next release.
|
|
|
|
|
| |
The first parameter (not used) is a unit, so declare it properly.
(cherry picked from commit 1bdfc88eba7f932b2581d55ecf4455d0e70335c2)
|
|
|
|
| |
(cherry picked from commit 3893dc0b9436ebb4dd620c6ca9b1d038eacf83a6)
|
|
|
|
| |
(cherry picked from commit 148e8068267bcf9ce8ff3a5062747998f960619d)
|
| |
|
|
|
|
|
| |
Red Hat Bugzilla is broken: RHBZ#823510.
(cherry picked from commit 91f3456244e7843768da659e24ce0aeeb4ebe4b0)
|
|
|
|
| |
(cherry picked from commit a7868dd3c940b6cee0894e6033ba611f01a423dd)
|
|
|
|
|
| |
This should be just code motion.
(cherry picked from commit a7e4a6c692554e4207b3bdff65946427e66e9fce)
|
|
|
|
| |
(cherry picked from commit fba81add94cde015afe8a65245cb4e60a1d3e6bf)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(RHBZ#823821).
Change guestfs___first_line_of_file so that if the file is empty this
returns an empty string instead of an error. This is consistent with
the behaviour of this function in the case where the file starts with
a \n character, where it would previously have returned an empty
string.
Change all callers so that they handle this case.
Then change the hostname parsing code so that it doesn't give up when
/etc/HOSTNAME is empty, but falls through to the next alternative, and
similarly for /etc/hostname.
Thanks Todd Mummert for finding and diagnosing this bug.
(cherry picked from commit f00066d22b11bf40d0272f68565a2a27fea15627)
|
|
|
|
|
|
|
|
|
|
| |
parse_release_file should be used to set fs->product_name, instead of
calling guestfs___first_line_of_file directory, although currently the
two are equivalent.
This is code motion and fixes
commit b648b1813fc8e55db790435b5414d9be3ec765d2.
(cherry picked from commit cffb7fefc88a317f957785f6448fb24183c8c629)
|
|
|
|
| |
(cherry picked from commit ee9ab52bc3e087f63dcc51d3b6ac5c79277425e1)
|
|
|
|
| |
(cherry picked from commit 216a6d16abdfbc36a5514df34f59507ef825e33e)
|
|
|
|
| |
(cherry picked from commit d5d9ceee8b56a10761e207ad9970ebf704fc46e8)
|
|
|
|
| |
(cherry picked from commit 975a41db20eff2b5edf510f8a65005c915b21f27)
|
|
|
|
|
|
|
|
|
| |
Missing package caused this error in compress-device-out:
libguestfs: error: compress_device_out: compression type bzip2 is not supported
Thanks Mohua Li.
(cherry picked from commit f904fa822316ff793e71d4d4ff7dc79e608dcb25)
|
|
|
|
| |
(cherry picked from commit 54028b9b669cfe495089a7652bb8cd06115f4907)
|
| |
|
|
|
|
| |
(cherry picked from commit 88a854cf7fd80ce4a6c6c3ded3aaaa3c135a1964)
|
|
|
|
| |
(cherry picked from commit 32765e440cee03bb7b89d1aa58c7dea4f55458c8)
|
|
|
|
|
|
|
|
|
|
| |
I used scsi_debug to create a 4k sector virtual disk:
modprobe scsi_debug dev_size_mb=128 sector_size=4096
I then used 'gdisk' to create lots of partitions, and used 'hexdump'
to examine what was written to disk.
(cherry picked from commit 2fd2c85f6a42575749b9d38bd2f1512ae25db760)
|
| |
|
|
|
|
| |
(cherry picked from commit 7201a48d18d03bf3b16141bcff8c56e842d3b1c1)
|
|
|
|
|
|
| |
This is just code motion.
(cherry picked from commit 157f6fb18b7197f688ea761a4e52cd39287024f2)
|
|
|
|
|
|
|
|
|
| |
For ARM Versatile ("versatilepb") architecture, memsize must be set to
256 (megabytes) else the appliance is unable to boot. Previously
setting LIBGUESTFS_MEMSIZE=256 was not allowed.
Versatile Express has larger limits.
(cherry picked from commit a3718c6b8be9bcbfd1e753c699f030d1852bc26e)
|
|
|
|
| |
(cherry picked from commit 77afc92fcd08677f9a9ae3b4f6c6919eb8ec2b33)
|
|
|
|
| |
(cherry picked from commit 0e960614ab0f7d878347d74229ffbb69a4a05540)
|
|
|
|
|
|
|
|
|
|
| |
'./configure --disable-probes' will disable these probes. Otherwise
they are autodetected as before.
The <sys/sdt.h> produces lots of errors when you try to compile with
these probes enabled under clang, so it is necessary to provide a way
to disable them for clang users.
(cherry picked from commit a1680f03b7d38bf007d29ac23035e5af33736b0e)
|
|
|
|
| |
(cherry picked from commit dd23234f730db7add330bd06f87cab1f08654747)
|
|
|
|
| |
(cherry picked from commit 9e2cdd309b709ee1e88269ee3252768515bf56ad)
|
|
|
|
| |
(cherry picked from commit 93734c78d8f802fbd80418e6ddb333b21f060fa9)
|
|
|
|
| |
(cherry picked from commit e60556d92725289a26ccb406c9c94be32b3251c8)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(RHBZ#701814).
Old versions of libvirt allowed you to define disks like this:
<disk type='file' device='disk'>
<driver name='qemu'/>
...
Since the <driver> element does not have a 'type' attribute (which
defines the format), we are supposed to do autodetection, so the
format should be undefined.
However what actually happened was that the code in
Sys::Guestfs::Lib::open_guest received format as an empty string from
the xpath query, causing libguestfs to give an error.
If the xpath query returns the format as an empty string, undefine it.
(cherry picked from commit f072a21f3aef6779aaa77329578ae3677a685d85)
|
|
|
|
|
| |
This is just code motion.
(cherry picked from commit 79bf966ceaa3508698f19bdc951ffc51693eb499)
|
| |
|
|
|
|
|
|
| |
Make the introduction in the man page shorter and punchier, so it
leads readers directly to other pages of interest.
(cherry picked from commit 922052c70fdc66859c78bbc89a7817aad141862a)
|