summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Version 1.14.2.1.14.2Richard W.M. Jones2011-11-1020-429/+1140
|
* ocaml: Fix bindings when a function takes more than 10 parameters.Richard W.M. Jones2011-11-091-4/+14
| | | | | | | If any function had more than 10 required + optional parameters, OCaml bindings could not be generated. Currently there are no such functions. (cherry picked from commit 29172e7c4878085a680812f7f3b8ad6ea5f1193c)
* tests: Fix bitmask parameter when testing optional arguments.Richard W.M. Jones2011-11-091-6/+7
| | | | | | | | | The bitmask was being constructed backwards(!) As a result, any test which tested optional arguments didn't work. There are very few such tests and they happened not to be affected by this. (cherry picked from commit af2b0378bbb178a4e3db326ac3082d66170fcafc)
* fish: More informative documentation of optargs.Richard W.M. Jones2011-11-091-2/+12
| | | | (cherry picked from commit 271f8e4b70e4acf2db96f6fe6317fda327fa5f2e)
* ocaml: Compile OCaml bindings and tests with -warn-error.Richard W.M. Jones2011-11-091-12/+15
| | | | (cherry picked from commit 145ed04e41a3fcd3be87c11cae0085f4551f1da8)
* ocaml: Catch EVENT_ENTER case in test.Richard W.M. Jones2011-11-091-1/+2
| | | | | | | | For some reason we are not compiling the tests with -warn-error so this problem was not noticed before. This fixes commit 9420eaf44ec4067c3740b91b0be0fede08a0c515. (cherry picked from commit 22c72b911e65b93cfd049f42e6bd1b9ad7d55299)
* Update FSF address.Matthew Booth2011-11-09299-307/+307
| | | | (cherry picked from commit 04ea1375c55aa67df4e7fc61dbb534111767f3b6)
* daemon: Use a private copy of /etc/lvm so we don't modify the real config.Richard W.M. Jones2011-11-093-16/+101
| | | | | | | | | | In the libguestfs live case we need to be careful not to modify the real /etc/lvm/lvm.conf file (when setting the filter rule). When the daemon starts, make a complete copy of /etc/lvm in a temporary directory, and adjust LVM_SYSTEM_DIR to point to the copy. All changes are made in the temporary copy. (cherry picked from commit 9c299b64bb24cefafa582fe425bb65b78373d205)
* daemon: Don't use files with fixed names in /tmp (thanks Steve Kemp).Richard W.M. Jones2011-11-092-20/+46
| | | | | | | Although this doesn't matter for the ordinary (appliance) case, it matters for the libguestfs live case. In that case it could cause the guest to be exploited by a tmp/symlink attack. (cherry picked from commit 6011b1f803ba7308c6a94b9bf6b7212cfccb9f42)
* virt-sysprep: Don't use xmlstarlet.Richard W.M. Jones2011-11-093-16/+9
| | | | | Use virt-inspector --xpath option instead. (cherry picked from commit 22998927f91f123e7c35d3ebf49e5744f3d7eafe)
* Add virt-inspector --xpath to run XPath queries directly.Richard W.M. Jones2011-11-092-7/+146
| | | | | | | | xmlstarlet is good, but not available in Red Hat Enterprise Linux. Build a simple but sane XPath query parser into virt-inspector directly so that we don't need any external tools. (cherry picked from commit d1ee71782ace98a11c5aabaf1f9fd5f601e08367)
* resize: Remove requirement for ocaml Pcre library.Richard W.M. Jones2011-11-096-34/+11
| | | | | | This library is not available in RHEL 6, and in any case removing the dependency is a simple change. (cherry picked from commit ffbafadcb8dfebcaba529cb8d7e2da52dd032d8a)
* resize: Add tests for some Utils functions.Richard W.M. Jones2011-11-094-2/+99
| | | | (cherry picked from commit 63898268101e5ec91c8dac46651dbee5976272ce)
* python: Use sys.version_info[0] instead of sys.version_info.major.Richard W.M. Jones2011-11-091-2/+2
| | | | | | | | | | The major/minor fields only exist in Python >= 2.7. This works for at least Python 2.5 and 2.6. Thanks to Hilko Bengen. This updates commit 646142f5136da9cfe2b908703a822c53350f70e9. (cherry picked from commit 31e5539a14f78d8815d0d930e91023a65b5395e7)
* python: Fixes for Python 3 (RHBZ#750889).Richard W.M. Jones2011-11-095-24/+123
| | | | | | | | | | | | | | These fixes allow libguestfs bindings to work with Python 3 (tested with Python 3.2) You can select which Python you compile against by doing: PYTHON=python ./configure && make && make check or: PYTHON=python3 ./configure && make && make check (cherry picked from commit 2116f79cbcd4605b4997931285f14dde1f72a992)
* python: Pass $PYTHON environment variable to tests.Richard W.M. Jones2011-11-093-6/+7
| | | | | | | | | If the user set PYTHON when configuring, this variable is not passed through to the tests, so it is possible the tests will fail because they are testing the wrong version of python. By passing $PYTHON through to the tests we ensure that we test against the same version of python that we configured with. (cherry picked from commit e2249b7ce1dd0a2f8f110e0e47aca397185a6373)
* python: Include <config.h>.Richard W.M. Jones2011-11-091-0/+2
| | | | | Ooops ... (cherry picked from commit 25454b83082a4cfed4f1664d2f9cdfcb222ba7c2)
* python: Correctly check for Python major/minor.Richard W.M. Jones2011-11-091-1/+3
| | | | | | | | | The manual for sys.version warns that you should not parse the string, which we were doing. It would have failed on python "2.10" or similar. Do it correctly using the sys.version_info struct instead. (cherry picked from commit 646142f5136da9cfe2b908703a822c53350f70e9)
* fish: Use size_t instead of int when counting strings.Richard W.M. Jones2011-11-091-4/+4
| | | | (cherry picked from commit b4da051d54a1597c7d8db8880d21a52265a6172e)
* Fix debug help error message.Matthew Booth2011-11-091-1/+1
| | | | | | | | | | | | When given an invalid debug command, libguestfs responds with the error message: libguestfs: error: debug: use 'debug help' to list the supported commands However this command does not work, as debug requires two arguments. This change updates the message to prompt the user to use 'debug help 0'. (cherry picked from commit 4e3a1205ebfec1a5cbc3062d6f73a684090e80b5)
* appliance: Add 'mdadm' package.Richard W.M. Jones2011-11-091-0/+1
| | | | (cherry picked from commit 6f84ef6768e9c625d67f7eb015277b0ec1b2c2af)
* Version 1.14.1.1.14.1Richard W.M. Jones2011-10-3118-23/+23
|
* perl: Add %guestfs_introspection hash with introspection information.Richard W.M. Jones2011-10-312-2/+132
| | | | | | Because this is a useful introspection API, it is a candidate for being backported into older stable branches. (cherry picked from commit 365885dab2ae6dcdf0b2c45d0adeb803ade03f63)
* Version 1.14.0.1.14.0Richard W.M. Jones2011-10-2720-10918/+10838
|
* Pull latest translations from Transifex.Richard W.M. Jones2011-10-2716-3877/+3816
|
* generator: Remove DangerWillRobinson.Richard W.M. Jones2011-10-2710-44/+9
| | | | | This warning was applied unevenly. Potentially any command can be dangerous or safe, so it was a needless warning.
* fuse: Skip guestmount test if setfacl is not installed.Richard W.M. Jones2011-10-271-0/+5
| | | | | This dependency is optional, don't fail the test if it's not installed.
* virt-sysprep: Skip test if xmlstarlet is not installed.Richard W.M. Jones2011-10-271-0/+5
| | | | | This dependency is optional, so don't fail the test if it is not installed.
* virt-alignment-scan: Add additional data for 4K sector drivesRichard W.M. Jones2011-10-271-3/+18
| | | | (thanks Matt Booth).
* test-virt-sparsify: Relax size_after constraint (for Debian).Richard W.M. Jones2011-10-271-1/+1
| | | | | | | size_after on Debian was 10136K. The host filesystem was ext3 (vs ext4 for Fedora where we did the original testing). Probably indirect blocks (vs more efficient extents on ext4) causes the difference, although I did not look at it in detail.
* Update RELEASE-NOTES for 1.14 release.Richard W.M. Jones2011-10-271-25/+74
|
* Update ROADMAP for 1.14 release.Richard W.M. Jones2011-10-271-15/+10
|
* Update API support.Richard W.M. Jones2011-10-2612-0/+5009
|
* Version 1.13.26.1.13.26Richard W.M. Jones2011-10-2620-13250/+13941
|
* guestmount: Fix --live option (RHBZ#744795).Richard W.M. Jones2011-10-262-8/+49
|
* 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.
* add-domain: Add readonlydisk optional argument (RHBZ#747290).Richard W.M. Jones2011-10-264-25/+173
| | | | | | | | | | | | | | | This optional argument controls how <readonly/> disks in the libvirt XML are handled. It can be set to one of: "write" (default) - add them R/W "read" - add them R/O "error" - throw an error if asked to add them R/W "ignore" - ignore these disks I have added limited regression tests for this feature. However libvirt's test:/// XML does not allow you to specify that a domain starts off shut down, so we cannot fully test this. Instead I tested it by hand.
* libvirt: Detect if a disk has the <readonly/> flag.Richard W.M. Jones2011-10-263-6/+21
| | | | | | This changes the private function guestfs___for_each_disk so that the <readonly/> flag on libvirt disks is detected and passed through to the callback function.
* test-user-cancel: Make this test choose smaller cancellation numbers.Richard W.M. Jones2011-10-262-7/+51
| | | | | | | | | | | | | | | Use a Gaussian distribution for random numbers so that smaller numbers are chosen more frequently. This also exposes a bug in this test which only happens when small numbers are chosen: If the test thread starts up quickly, it can get to guestfs_user_cancel before the guestfs_upload command has happened in the main thread. This causes the cancel to be ignored (correctly) and we end up in the second loop writing data until the disk runs out of space. Fix this by repeatedly asserting the cancel flag in the second loop.
* Version 1.13.25.1.13.25Richard W.M. Jones2011-10-2620-20387/+22849
|
* virt-resize: Be much more conservative about moving first partition.Richard W.M. Jones2011-10-261-5/+26
| | | | | | | | | | | | Commit 2910413850c7d9e8df753afad179e415f0638d6d caused Windows 7 resizes to break with the 0xc0000225 boot error. Change the --align-first auto (default) option so that it is more conservative about when it moves the first partition. In particular it doesn't move it if it's already aligned (as it is for Win7), nor if there is more than one partition (also Win7). Tested with: Windows XP, 2003, 7, Ubuntu 10.10 and RHEL 5.
* Flush stdout for progress bars used by guestfish, virt-resize.Richard W.M. Jones2011-10-261-0/+1
|
* virt-resize: Handle extended and logical partitions (RHBZ#642821).Richard W.M. Jones2011-10-262-17/+90
|
* resize: Get the partition table type of the source disk earlier.Richard W.M. Jones2011-10-261-7/+17
| | | | | | Also we only permit MBR (DOS) and GPT partition tables. In theory previously we allowed other partition table types, but it is unlikely that it would have worked in reality.
* New APIs: copy-{file,device}-to-{file,device}.Richard W.M. Jones2011-10-266-12/+326
| | | | | | | | | | | The four new APIs: guestfs_copy_device_to_device, guestfs_copy_device_to_file, guestfs_copy_file_to_device, and guestfs_copy_file_to_file let you copy from a source to a destination, between files and devices, optionally allowing source and destination offsets and size to be specified.
* ocaml: Make sure virt-resize, virt-sparsify are rebuilt if Guestfs API changes.Richard W.M. Jones2011-10-254-16/+16
| | | | | | | | Add a dependency so these tools are rebuilt from scratch if the Guestfs API changes. This prevents the error: "[...] make inconsistent assumptions over interface Guestfs". This commit includes the generated changes to .depend files.
* virt-filesystems: Add MBR partition type byte to the output.Richard W.M. Jones2011-10-252-12/+64
| | | | | | | | | | | | | This adds an extra column containing this information, looking like this: Name Type VFS Label MBR Size Parent /dev/sda1 filesystem ntfs - - 6.0G - /dev/sda1 partition - - 07 6.0G /dev/sda /dev/sda device - - - 6.0G - In particular you can use this to tell if a partition is an extended partition, because the field will contain '05' or '0f'.
* New API: part-to-partnumRichard W.M. Jones2011-10-253-2/+43
| | | | | | This converts a partition device name (eg. /dev/sda1) to a partition number (eg. 1). This is useful in conjunction with the parted APIs that mostly take a disk device + partnum.
* virt-cat: Handle Windows paths and drive letters (RHBZ#693359).Richard W.M. Jones2011-10-252-3/+180
|
* Version 1.13.24.1.13.24Richard W.M. Jones2011-10-2420-937/+1050
|