summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* contrib: More trace visualization.Richard W.M. Jones2010-10-065-17/+702
|
* debug: Add qtrace <device> on|off to allow selective traces.Richard W.M. Jones2010-10-061-0/+91
|
* part-disk: Align whole disk partition to 64 sectors.Richard W.M. Jones2010-10-061-15/+9
| | | | | | Change the part-disk command so it aligns the partition to 64 sectors (instead of 1 or 34 sectors as now). This should ensure that the filesystem contained within is aligned.
* contrib: Fix small mistake in README file.Richard W.M. Jones2010-10-051-2/+2
|
* contrib: Update README files.Richard W.M. Jones2010-10-052-0/+8
|
* contrib: Visualizing block device access and alignment.Richard W.M. Jones2010-10-058-0/+876
|
* ocaml: Add g#ocaml_handle method.Richard W.M. Jones2010-10-041-0/+4
|
* ocaml: Document g#close () method for objects.Richard W.M. Jones2010-10-041-0/+3
|
* ocaml: Create the handle when the object is instantiated.Richard W.M. Jones2010-10-042-4/+6
| | | | | Previously we had only one handle shared between all objects .. oops. This fixes commit 67636f721056d2f2250b0ff8acd981a0294536a9.
* ocaml: Add alternate object-oriented programming style.Richard W.M. Jones2010-10-032-11/+72
| | | | | | | | | | | | | | | | | | | | | | In original style: let () = let filename = Sys.argv.(1) in let g = Guestfs.create () in Guestfs.add_drive_ro g filename; Guestfs.launch g; let roots = Guestfs.inspect_os g in print_endline (Guestfs.inspect_get_product_name g roots.(0)) The same code in the new OO style: let () = let filename = Sys.argv.(1) in let g = new Guestfs.guestfs in g#add_drive_ro filename; g#launch (); let roots = g#inspect_os () in print_endline (g#inspect_get_product_name roots.(0))
* test-copy: Skip this test if /dev/fd is missing, because of broken mock 1.1.4.Richard W.M. Jones2010-10-021-0/+8
|
* test-virt-resize: Skip this test on 32 bit hosts.Richard W.M. Jones2010-10-021-0/+7
|
* Version 1.5.21.1.5.21Richard W.M. Jones2010-10-0117-8727/+8972
|
* fish: Fix glob command (RHBZ#635969).Richard W.M. Jones2010-10-011-9/+3
| | | | | | | | | This is a fix for the glob command in guestfish which was inadvertently broken in commit c359347dd42c9f5b875630537ee3641264826b89. This also appears to fix: https://bugzilla.redhat.com/show_bug.cgi?id=635969 glob echo mkfs ext2 /dev/vd[b-t]1 prints garbage
* Add test for virt-resize.Richard W.M. Jones2010-09-272-0/+32
| | | | | | | | | | | | | | This tests a number of things which have caused problems for us: - resizing PVs and LV content - handling GPT format disks - using qcow2 as a target disk format - shrinking disk images Note that the disk content is empty (not a real VM), but this is adequate since all we want to test are the operations and calculations done by virt-resize. We are not interested here in whether e2fsprogs and LVM actually works.
* resize: Fix handling of GPT and qcow2 (RHBZ#633766, RHBZ#633096).Richard W.M. Jones2010-09-271-70/+79
| | | | | | | | | | | | | | | | | | Previously we copied the bootloader data directly from the source disk image to the target disk image using host file operations (before launching libguestfs). This has two problems: firstly it has no chance of working with qcow2, and secondly it didn't behave properly with GPT. This changes the code so that everything is done through libguestfs. Block device sizes are now calculated properly for qcow2 (RHBZ#633096) because this is done using the libguestfs blockdev_getsize64 call. The partition table is still created by parted, but to workaround a bug in parted this is done before copying the bootloader. Finally the bootloader copy is done using the new APIs pread-device and pwrite-device. Shrinking now works, at least for simple cases (RHBZ#633766).
* New API: pread-device, partial read for devices.Richard W.M. Jones2010-09-273-17/+53
|
* pread: Check count and offset parameters are not negative.Richard W.M. Jones2010-09-271-0/+10
|
* Freshen POD (manual pages) stylesheet.Richard W.M. Jones2010-09-271-5/+73
|
* Version 1.5.20.1.5.20Richard W.M. Jones2010-09-2617-13092/+12631
|
* New API: pwrite-deviceRichard W.M. Jones2010-09-263-11/+54
| | | | | This is the same as the existing 'pwrite' API call, but allows you to write to a device.
* pwrite: Check offset is not negative.Richard W.M. Jones2010-09-261-0/+5
|
* fish: Refresh guestfish documentation.Richard W.M. Jones2010-09-261-25/+48
|
* Document ambiguity between devices and paths in API.Richard W.M. Jones2010-09-261-0/+31
|
* Document accurately how supermin appliance uses /tmp as a cache.Richard W.M. Jones2010-09-242-6/+6
|
* Allow $TMPDIR to override most temporary directory uses.Richard W.M. Jones2010-09-2412-31/+58
| | | | | | | Be more consistent in allowing the user to override use of the temporary directory by specifying $TMPDIR. Also prefer P_tmpdir macro (defined in <stdio.h>) if that is defined, rather than hard-coding "/tmp" for the fallback location.
* Call blockdev --rereadpt then udev_settle after sfdisk commands.Richard W.M. Jones2010-09-241-3/+6
| | | | | | | This updates commit 956fc5a3feacc970ea763697bf28fb686c875408 so that we call udev_settle after rereading the partition table. This ensures that the devices nodes for the new partitions have been created.
* Update Spanish translations (RHBZ#636918).Daniel Cabrera2010-09-231-855/+1676
|
* Update Polish translations (RHBZ#502533).Piotr Drąg2010-09-231-332/+86
|
* Version 1.5.19.1.5.19Richard W.M. Jones2010-09-2216-18/+18
|
* regressions: Test just-built guestfish.Richard W.M. Jones2010-09-222-2/+3
| | | | | | Instead of testing the installed /usr/bin/guestfish. This fixes commit ddda0f7bd00a37274dae38f4ce93955b8cfdf7d7.
* Call blockdev --rereadpt after sfdisk commands.Richard W.M. Jones2010-09-221-1/+13
| | | | | | | | | | | | On fast machines sfdisk has some sort of race where it fails to re-read the partition table it has just created (it's not clear if this is a race in sfdisk, the kernel or some other component). This commit works around the problem by calling blockdev --rereadpt after sfdisk operations, which experience shows is enough to stop the problem from happening.
* Version 1.5.18.1.5.18Richard W.M. Jones2010-09-2216-18/+24
|
* Test guestfish -a and guestfish -d options.Richard W.M. Jones2010-09-223-0/+82
| | | | | Since these options were both broken in released version 1.5.17, best to have a regression test to catch this in future.
* appliance: Ignore unreadable dbus service file (Fedora 15).Richard Jones2010-09-221-0/+1
|
* fish: Fix segfault in free_drives() function.Richard W.M. Jones2010-09-221-2/+2
| | | | | This updates commit 8ea62c8d7f3f7f7e4057b93105cf979271aa13f4 so it doesn't try to free the optarg (stack-allocated) strings.
* Version 1.5.17.1.5.17Richard W.M. Jones2010-09-2117-16248/+16924
|
* Update release notes for new features in 1.5 branch.Richard W.M. Jones2010-09-211-0/+121
|
* fish: Implement 'hexedit' command.Richard W.M. Jones2010-09-216-1/+239
|
* New APIs: upload-offset and download-offsetRichard W.M. Jones2010-09-213-4/+162
| | | | | These APIs allow you to efficiently write and read parts of files or devices.
* leak: Clear history before exiting guestfish.Richard W.M. Jones2010-09-211-0/+1
| | | | | | | | | Clear the in-memory history before exiting. This removes some but not all memory leaks associated with using the GNU History library. As far as I can tell it is not possible to free up everything used by GNU History. (Found by valgrind).
* leak: Free list of drives and mountpoints in guestfish.Richard W.M. Jones2010-09-213-2/+53
| | | | | | | | | | Previously the list of -a, -d, -m, -N parameters were leaked. This change frees them explicitly. This is not such an important fix since guestfish is a one-shot program, but it aids in finding other leaks in future. (Found by valgrind).
* leak: Free PCRE regexps when library is unloaded.Richard W.M. Jones2010-09-211-0/+18
| | | | | | | The compiled PCRE regexps used for inspection were being leaked when the library was unloaded. (Found by valgrind).
* leak: Appliance name was leaked during guestfs_launch.Richard W.M. Jones2010-09-211-0/+2
| | | | | | | This frees the string containing the name of the appliance which was previously being leaked during launch. (Found by valgrind).
* Add more exclusions to .gitignore.Matthew Booth2010-09-211-0/+2
|
* Fix appliance build dependency problemMatthew Booth2010-09-212-5/+1
| | | | | | | | | | The appliance was being completely rebuilt every time guestfsd was updated. This was because make.sh depended on guestfsd, which it had to do because it called update.sh to install guestfsd. This fix removes the call to update.sh in make.sh, and therefore the dependency on guestfsd. The Makefile already includes a rule to run update.sh when guestfsd is updated, so this was unnecessary.
* fish: Add --echo-keys option to allow passphrases/keys to be echoed.Richard W.M. Jones2010-09-212-8/+22
| | | | | See also: http://catless.ncl.ac.uk/Risks/26.17.html#subj13.3
* df: Add --one-per-guest option for using one appliance per guest.Richard W.M. Jones2010-09-201-44/+98
|
* Fix error launching libguestfs when euid != uid.Richard W.M. Jones2010-09-201-25/+108
| | | | | | | | | | | | | | | | | When writing to a RHEV target, virt-v2v launches the libguestfs appliance with euid:egid = 36:36, which is required to write to an NFS target using root_squash. Since we changed to using a cached appliance, this causes an error on start up, as the cached files are owned by root, but the cache directory is owned by 36:36. The reason is that bash resets euid to uid and egid to gid so when febootstrap-supermin-helper is executed, it runs as root:root. The cache directory was created by libguestfs directly so it has the correct ownership. This patch fixes the issue by using explicit fork/exec instead of system (ie. not going via a shell) and by setting the real UID and GID to the effective UID and GID before execing.
* todo: Suggest removing repo name from appliance name.Richard W.M. Jones2010-09-201-0/+6
|