Pino Toscano
e3834188a9
bash: complete some params for resize, sparsify, and builder
...
Hardcode the list of fixed arguments for some of the parameters of these
tools.
2014-11-27 16:26:13 +01:00
Pino Toscano
1784cd2633
bash: complete also short options
...
Propose both short and long options when trying to complete a single
dash ("-").
2014-11-27 16:26:13 +01:00
Pino Toscano
4b792354f0
bash: execute --long-options only when needed
...
Delay the execution of $tool --long-options only when really using its
output.
2014-11-27 16:26:13 +01:00
Pino Toscano
b00adf3b78
tools: implement --short-options
...
Just like --long-options, it makes it possible to know which short
options are supported by each tool; this can help improving the bash
completion, for example.
2014-11-27 16:26:13 +01:00
Richard W.M. Jones
3d3694610f
p2v: Add HACKING file.
2014-11-27 14:39:31 +00:00
Richard W.M. Jones
7ee6977f7e
Version 1.29.11.
1.29.11
2014-11-27 12:04:30 +00:00
Pino Toscano
5e81c838e8
Update gobject/Makefile.inc and POTFILES
...
Followup of commit a120449c979993f4b5bd458ece00fadb339546d3.
2014-11-26 17:22:02 +01:00
Hu Tao
1622e3d218
btrfs: add optional parameter `qgroupid' to btrfs_subvolume_create
...
Parameter `qgroupid' is for adding the created subvolume to a qgroup.
Signed-off-by: Hu Tao <hutao@cn.fujitsu.com >
2014-11-26 17:22:02 +01:00
Hu Tao
9e7b9ef97f
btrfs: add optional parameter `qgroupid' to btrfs_subvolume_snapshot
...
Parameter `qgroupid' is for adding the created snapshot to a qgroup.
Signed-off-by: Hu Tao <hutao@cn.fujitsu.com >
2014-11-26 17:22:01 +01:00
Pino Toscano
5f608f0735
Update gobject/Makefile.inc and POTFILES
...
Followup of commit 0b3c1762965f339915fd080884a61dbb36545204.
2014-11-26 17:22:01 +01:00
Hu Tao
b349076aee
btrfs: add optional parameter `ro' to btrfs_subvolume_snapshot
...
Parameter `ro' is for creating readonly btrfs snapshot.
Signed-off-by: Hu Tao <hutao@cn.fujitsu.com >
2014-11-26 17:22:01 +01:00
Richard W.M. Jones
8cd2620448
Add debug APIs: bmap-file, bmap-device, bmap.
...
Add *interim* support for a block mapping API, used by the 'virt-bmap'
tool. These are debug APIs so they will eventually be replaced by
real APIs along the lines described here:
https://www.redhat.com/archives/libguestfs/2014-November/msg00197.html
2014-11-26 16:15:47 +00:00
Hu Tao
dc1f15aa3e
typo fix: commmand -> command
...
Signed-off-by: Hu Tao <hutao@cn.fujitsu.com >
2014-11-26 13:22:36 +01:00
Hu Tao
b6f6454678
typo fix: preceeding -> preceding
...
Signed-off-by: Hu Tao <hutao@cn.fujitsu.com >
2014-11-26 13:22:32 +01:00
Richard W.M. Jones
55f6dc7f3d
Version 1.29.10.
1.29.10
2014-11-25 19:38:44 +00:00
Nikos Skalkotos
f3dbf340b8
Add tests for Arch Linux
...
Signed-off-by: Nikos Skalkotos <skalkoto@gmail.com >
2014-11-25 15:25:45 +00:00
Pino Toscano
7ce73d8980
mllib: check the right out channel for tty
...
Make sure to check whether the given output channel is a tty before
sending ANSI terminal codes to it, instead of always check what stdout
is.
2014-11-25 15:40:49 +01:00
Pino Toscano
b2b65bcefb
mllib: remove the TTY module
...
The only function provided is isatty_stdout, which is no more used now
in favour of Unix.isatty.
2014-11-25 15:40:49 +01:00
Pino Toscano
8a56fc8e08
mllib: use Unix.isatty
...
Make use of Unix.isatty instead of our TTY.isatty_stdout, as the
supported OCaml provides the former already.
2014-11-25 15:40:49 +01:00
Hu Tao
bd61f25625
generator: force longdesc to begin with uppercase
...
As contrast to shortdesc which is forced to begin with lowercase, this
patch forces longdesc to begin with uppercase.
Signed-off-by: Hu Tao <hutao@cn.fujitsu.com >
2014-11-25 14:35:40 +00:00
Richard W.M. Jones
7030635e51
v2v: -i ova: Small correction to warning message.
...
Thanks: Pino Toscano
2014-11-25 14:34:27 +00:00
Richard W.M. Jones
350b6eec4d
New API: guestfs_blockdev_setra: Adjust readahead for filesystems and devices.
...
This adds a binding for 'blockdev --setra', allowing you to adjust the
readahead parameter for filesystems and devices.
2014-11-25 14:34:27 +00:00
Richard W.M. Jones
dbdfa79d91
daemon: blockdev: Allow extraarg to be 0.
...
No change, since extraarg is not actually used.
2014-11-25 14:31:42 +00:00
Richard W.M. Jones
79fb3debc4
v2v: -i ova: Remove incorrect warning for disks that have no parent controller (RHBZ#1167302).
...
Don't assume every disk <Item> has a <Parent> field. For floppy disks
this is not the case.
Thanks: Junqin Zhou
2014-11-24 19:02:34 +00:00
Richard W.M. Jones
dc845c9a66
ntfsresize: Capture errors sent to stdout (RHBZ#1166618).
...
ntfsresize sends error messages to stdout. Capture those error
messages.
2014-11-24 19:02:34 +00:00
Richard W.M. Jones
e90ab1530e
lib: guestfs_disk_create: Allow vmdk as a valid backingformat.
...
Commit 588af1953e started with a very
conservative list of permitted backing formats (just "raw" or
"qcow2"). We can allow almost any format permitted by qemu, but this
commit just adds "vmdk" to this whitelist.
2014-11-23 22:15:42 +00:00
Hu Tao
5a84407f57
btrfs: correct words about subvolume and snapshot
...
btrfs_subvolume_create creates only subvolumes. btrfs_subvolume_delete
deletes subvolumes or snapshots.
Signed-off-by: Hu Tao <hutao@cn.fujitsu.com >
2014-11-21 18:11:44 +01:00
Pino Toscano
99263616ca
src: inspect: move read_package within the -Wno-cast-align block
...
Starting from commit e260460a8f be32toh is
used, which means possible "unaligned cast" warnings (already covered in
get_rpm_header_tag).
2014-11-21 16:10:33 +01:00
Pino Toscano
2305fe3fc6
build: mllib: put $(LIBTINFO_LIBS) within '...'
...
This helps when $(LIBTINFO_LIBS) contains spaces (i.e. more than one
"word").
2014-11-21 16:08:50 +01:00
Richard W.M. Jones
c64467a4c1
p2v: Include version and md5sum in kickstart.
...
Include the version of virt-p2v and its MD5 checksum in the source
kickstart. This is useful for working out which version of virt-p2v
the kickstart corresponds to.
2014-11-20 22:22:49 +00:00
Richard W.M. Jones
ac1b4bcd7d
Version 1.29.9.
1.29.9
2014-11-20 21:49:03 +00:00
Richard W.M. Jones
25b979a0c4
p2v: Make the "Cancel Conversion" button work (RHBZ#1165569).
...
This relies on the remote to keep sending us data. If it hangs, then
the cancel button won't work. This could also be fixed by introducing
a timeout to the read syscall.
2014-11-20 16:11:19 +00:00
Richard W.M. Jones
98dd01728f
p2v: Disable "Cancel Conversion" button after the conversion (RHBZ#1165569).
...
Actually this bug does nothing and remains cancelled all the
way through. The next commit makes it function.
2014-11-20 16:11:19 +00:00
Richard W.M. Jones
141832e2b2
p2v: Add 'Reboot' button to the GUI (RHBZ#1165564).
2014-11-20 16:11:19 +00:00
Richard W.M. Jones
5d695d37a5
p2v: gui: Get the correct button for cancel_button.
...
I was fetching cancel_button from the wrong dialog (conv_dlg, not
run_dlg), and therefore getting the wrong button.
This explains why the back button on the conversion dialog was always
insensitive. It's because cancel_button was assigned to this button,
and then I was setting cancel_button to insensitive.
2014-11-20 16:11:19 +00:00
Richard W.M. Jones
11347db576
p2v: Remove --fullscreen option.
...
It did nothing and was left over from an earlier attempt to add
fullscreen mode. That is not needed any longer since we now run
virt-p2v under the matchbox window manager.
2014-11-20 16:11:19 +00:00
Richard W.M. Jones
3dabc7a7ba
appliance: When running systemd-tmpfiles, pass --boot option (RHBZ#1165785).
...
This causes all tmpfiles to be created.
2014-11-20 13:05:26 +00:00
Richard W.M. Jones
8e78a83067
appliance: Create tmpfiles before running udev.
...
This is the same order as systemd would run them.
2014-11-20 13:04:45 +00:00
Richard W.M. Jones
63d67ac8ac
v2v: linux: Delete the LVM cache which may reference old devices (RHBZ#1164853).
...
Thanks: Bryn M. Reeves
2014-11-20 11:22:32 +00:00
Richard W.M. Jones
7b8c6e762e
v2v: linux: Remap device names in /boot/grub2/device.map (RHBZ#1165975).
...
Thanks: Junquin Zhou
2014-11-20 10:08:51 +00:00
Richard W.M. Jones
171e6383a2
v2v: linux: In verbose mode, add dracut --verbose parameter.
...
So we can see exactly what dracut is doing in the debug output.
2014-11-19 13:20:13 +00:00
Nikos Skalkotos
6aaff1fffa
inspection: deb: Seperate epoch field from version
...
Return it in the app2_epoch field of the guestfs_application2 struct
Signed-off-by: Nikos Skalkotos <skalkoto@gmail.com >
2014-11-18 20:41:05 +00:00
Richard W.M. Jones
28f2cb7e3a
Version 1.29.8.
1.29.8
2014-11-18 16:55:21 +00:00
Richard W.M. Jones
467bbf72f7
v2v: linux: Refactor device replacement code.
...
No functional change. This should be equivalent to previously.
2014-11-18 14:38:14 +00:00
Richard W.M. Jones
b1053150a2
v2v: linux: Always match partition number in regexp.
...
Change the rex_device_p regular expression to always include a
partition number.
There should be no functional change here.
2014-11-18 14:38:14 +00:00
Richard W.M. Jones
e25f68c47e
v2v: linux: Print block device map in verbose mode.
...
Very useful for debugging device mapping problems.
2014-11-18 14:38:14 +00:00
Richard W.M. Jones
4c7026fb7a
v2v: Don't change Augeas device entries unless the value has changed.
...
When remapping block devices, don't change an entry unless its value
has changed. This avoids unnecessary Augeas writes.
2014-11-18 14:38:14 +00:00
Richard W.M. Jones
9ebc125723
v2v: Don't use <target dev> attribute, use <target bus> instead.
...
The <target dev> attribute in libvirt isn't very informative. What we
really want to know is whether the source disk used IDE or SCSI, as
that allows us to remap block devices accurately during conversion.
For example, if the source was IDE and RHEL 5, and after conversion
virtio will be supported, then we know that we need to remap
"/dev/hda" to "/dev/vda".
Drop the s_target_dev and s_removable_target_dev fields and replace
them with s_controller and s_removable_controller.
For -i libvirt, use the <target bus> attribute to get this information.
For -i ova, use the OVF disk controller's ResourceType.
(http://blogs.vmware.com/vapp/2009/11/virtual-hardware-in-ovf-part-1.html )
2014-11-18 13:34:57 +00:00
Richard W.M. Jones
78f6d3aff5
v2v: -i ova: XML is case-sensitive, so replace 'InstanceId' with 'InstanceID'.
2014-11-18 12:35:38 +00:00
Nikos Skalkotos
01bdfe7d81
list-applications: Add support for pacman
...
Extend the guestfs_inspect_list_applications2 API call to work on Arch
Linux guest images.
Signed-off-by: Nikos Skalkotos <skalkoto@gmail.com >
2014-11-17 19:54:45 +00:00