Re: [Libguestfs] [PATCH] New API: part_get_part_type for showing partition type

2015-03-23 Thread Richard W.M. Jones
On Tue, Mar 17, 2015 at 02:45:46AM -0400, Chen Hanxiao wrote: This patch will add support for getting partition type of a partiton numbered device. Signed-off-by: Chen Hanxiao chenhanx...@cn.fujitsu.com --- daemon/parted.c | 112 +++

Re: [Libguestfs] [PATCH v2] customize: add --truncate-recursive option

2015-03-23 Thread Richard W.M. Jones
Thanks - ACKed and pushed. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and

Re: [Libguestfs] [PATCH v2] btrfs-qgroup-show: add check for --raw

2015-03-23 Thread Richard W.M. Jones
ACKed and (will) push. Thanks, Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com Fedora Windows cross-compiler. Compile Windows programs, test, and build Windows installers. Over 100

Re: [Libguestfs] [PATCH v2] New API: btrfs-image

2015-03-23 Thread Richard W.M. Jones
On Tue, Mar 17, 2015 at 02:53:35AM -0400, Chen Hanxiao wrote: + /* btrfs-progs will valid numtheads and choose the right one for us */ + if ((optargs_bitmask GUESTFS_BTRFS_IMAGE_NUMTHREADS_BITMASK) + numthreads) { +snprintf (numthreads_s, sizeof numthreads_s, %d, numthreads); +

Re: [Libguestfs] [PATCH] fuse: resolve absolute links to relative ones

2015-03-23 Thread Richard W.M. Jones
On Wed, Mar 18, 2015 at 02:21:31PM +0100, Maros Zatko wrote: First it strips /sysroot and then finds common prefix aligned on slashes. Next it produces ../ for each slash found in common prefix and concatenates them with the rest of resolved link. Fixes RHBZ#604041 --- src/fuse.c | 33

Re: [Libguestfs] [PATCH v3] fish: add journal-view command

2015-03-23 Thread Richard W.M. Jones
On Thu, Mar 05, 2015 at 04:51:00PM +0100, Maros Zatko wrote: Lets user view journald log from VM in a similar format as journalctl uses. Makes virt-log use the same code as guestfish for journal-view. Fixes RFE: journal reader in guestfish (RHBZ#988100) I think this patch could be in two

Re: [Libguestfs] [PATCH] guestfs.pod: don't encourage 'make syntax-check'

2015-03-23 Thread Richard W.M. Jones
On Fri, Mar 13, 2015 at 01:32:59AM -0400, Chen Hanxiao wrote: Signed-off-by: Chen Hanxiao chenhanx...@cn.fujitsu.com --- src/guestfs.pod | 4 1 file changed, 4 deletions(-) diff --git a/src/guestfs.pod b/src/guestfs.pod index 377db21..70400a1 100644 --- a/src/guestfs.pod +++

Re: [Libguestfs] [PATCH] builder: handle empty lines in indexes before first section (RHBZ#1201526)

2015-03-23 Thread Richard W.M. Jones
ACK. I'll push this shortly. Thanks, Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net

Re: [Libguestfs] [PATCH] inspection: add support for systemd .mount files

2015-03-23 Thread Richard W.M. Jones
On Mon, Mar 16, 2015 at 07:09:51PM +0100, Maros Zatko wrote: Fixes RHBZ#1113153. --- src/inspect-fs-unix.c | 240 ++ 1 file changed, 240 insertions(+) diff --git a/src/inspect-fs-unix.c b/src/inspect-fs-unix.c index 2abbf24..6dfc299 100644

Re: [Libguestfs] [PATCH] virt-ls: support drive letters on Windows

2015-03-23 Thread Richard W.M. Jones
On Tue, Mar 17, 2015 at 03:33:09PM +0100, Maros Zatko wrote: --- cat/ls.c | 31 ++- 1 file changed, 30 insertions(+), 1 deletion(-) diff --git a/cat/ls.c b/cat/ls.c index 9161fb6..151c11d 100644 --- a/cat/ls.c +++ b/cat/ls.c @@ -37,6 +37,7 @@ #include

Re: [Libguestfs] [PATCH v3] virt-copy, virt-tar: show help for -h

2015-03-23 Thread Richard W.M. Jones
On Fri, Feb 06, 2015 at 02:11:13PM +0100, Maros Zatko wrote: --- fish/virt-copy-in | 9 + fish/virt-copy-out | 9 + fish/virt-tar-in | 9 + fish/virt-tar-out | 9 + 4 files changed, 36 insertions(+) diff --git a/fish/virt-copy-in b/fish/virt-copy-in

[Libguestfs] [PATCH v4] [RFE] virt-builder should support download resume

2015-03-23 Thread Maros Zatko
This adds support for resuming downloads in virt-builder. Partially downloaded image is not deleted on exit anymore. There is a check for partially downloaded image in cache directory based on its name. When found, download_to crafts appropriate options to continue its download. Fixes

[Libguestfs] [PATCH v4] builder: support for download resume

2015-03-23 Thread Maros Zatko
Partially downloaded image is not deleted on exit anymore. There is a check for partially downloaded image in cache directory based on its name. When found, download_to crafts appropriate options to continue its download. --- builder/downloader.ml | 31 +-- 1 file

[Libguestfs] Inspection of disk snapshots

2015-03-23 Thread NoxDaFox
Greetings, I have the following typical scenario: given one or more qcow2 base images I clone them with COW and start the VMs. At a certain point I'd like to inspect them in order to see their evolution compared to the known base images. To do so I was thinking about taking a disk snapshot of

Re: [Libguestfs] [PATCH v3] [RFE] virt-builder should support download resume

2015-03-23 Thread Maros Zatko
Ah, disregard this please. I should have read emails first :) ___ Libguestfs mailing list Libguestfs@redhat.com https://www.redhat.com/mailman/listinfo/libguestfs

Re: [Libguestfs] [PATCH 1/2] mllib: allow external_command to return [] on nonzero return value

2015-03-23 Thread Richard W.M. Jones
On Wed, Mar 18, 2015 at 05:20:06PM +0100, Maros Zatko wrote: This is useful for probing probing for cache files such as: external_command ?ignore_error:(Some true) ~prog ls .cache/something.* will return command output (matched files) on its success or empty list whenits exit code is other

[Libguestfs] [PATCH v3] builder: support for download resume

2015-03-23 Thread Maros Zatko
Partially downloaded file is not deleted on exit anymore. There is a check for partially downloaded image in cache directory based on its name. When found, download_to crafts appropriate options to continue its download. --- builder/downloader.ml | 31 +-- 1 file

[Libguestfs] [PATCH v3] [RFE] virt-builder should support download resume

2015-03-23 Thread Maros Zatko
This adds support for resuming downloads in virt-builder. Partially downloaded file is not deleted on exit anymore. There is a check for partially downloaded image in cache directory based on its name. When found, download_to crafts appropriate options to continue its download. Fixes

Re: [Libguestfs] [PATCH] New API: part_get_part_type for showing partition type

2015-03-23 Thread Chen, Hanxiao
-Original Message- From: Richard W.M. Jones [mailto:rjo...@redhat.com] Sent: Monday, March 23, 2015 9:29 PM To: Chen, Hanxiao/陈 晗霄 Cc: libguestfs@redhat.com Subject: Re: [Libguestfs] [PATCH] New API: part_get_part_type for showing partition type On Tue, Mar 17, 2015 at

[Libguestfs] [PATCH v2] RFE: support Windows drive letters in virt-ls

2015-03-23 Thread Maros Zatko
It is modelled after virt-cat. Fixes RHBZ#845234 Ammended so it doesn't do inspection for every dir to list. Maros Zatko (1): virt-ls: support drive letters on Windows cat/ls.c | 32 +++- 1 file changed, 31 insertions(+), 1 deletion(-) -- 1.9.3

[Libguestfs] [PATCH v2] virt-ls: support drive letters on Windows

2015-03-23 Thread Maros Zatko
--- cat/ls.c | 32 +++- 1 file changed, 31 insertions(+), 1 deletion(-) diff --git a/cat/ls.c b/cat/ls.c index 9161fb6..b7a99b2 100644 --- a/cat/ls.c +++ b/cat/ls.c @@ -37,6 +37,7 @@ #include options.h #include visit.h +#include windows.h /* Currently open

[Libguestfs] [PATCH] customize: add --copy

2015-03-23 Thread Maros Zatko
From: Maros Zatko hacx...@gmail.com This adds --copy SOURCE:DEST, equivalent of calling g#cp_a src dst. RFE: RHBZ#1203817 Maros Zatko (1): customize: add --copy builder/cmdline.ml | 2 +- customize/customize_run.ml | 4 generator/customize.ml | 10 ++ 3 files

[Libguestfs] [PATCH] customize: add --copy

2015-03-23 Thread Maros Zatko
From: Maros Zatko hacx...@gmail.com This adds --copy SOURCE:DEST, equivalent of calling g#cp_a src dst. RFE: RHBZ#1203817 --- builder/cmdline.ml | 2 +- customize/customize_run.ml | 4 generator/customize.ml | 10 ++ 3 files changed, 15 insertions(+), 1 deletion(-)

[Libguestfs] [PATCH] customize: add --move

2015-03-23 Thread Maros Zatko
From: Maros Zatko hacx...@gmail.com This adds --move SOURCE:DEST, equivalent of calling g#mv src dst. RFE: RHBZ#1203817 Maros Zatko (1): customize: add --move builder/cmdline.ml | 2 +- customize/customize_run.ml | 4 generator/customize.ml | 10 ++ 3 files

Re: [Libguestfs] Inspection of disk snapshots

2015-03-23 Thread Richard W.M. Jones
On Mon, Mar 23, 2015 at 10:41:01PM +, Richard W.M. Jones wrote: On Mon, Mar 23, 2015 at 04:34:21PM +0200, NoxDaFox wrote: Greetings, I have the following typical scenario: given one or more qcow2 base images I clone them with COW and start the VMs. At a certain point I'd like to

Re: [Libguestfs] [PATCH v2] New API: btrfs-image

2015-03-23 Thread Chen, Hanxiao
-Original Message- From: Richard W.M. Jones [mailto:rjo...@redhat.com] Sent: Monday, March 23, 2015 9:32 PM To: Chen, Hanxiao/陈 晗霄 Cc: libguestfs@redhat.com Subject: Re: [Libguestfs] [PATCH v2] New API: btrfs-image On Tue, Mar 17, 2015 at 02:53:35AM -0400, Chen Hanxiao wrote:

[Libguestfs] [PATCH v3] New API: btrfs-image

2015-03-23 Thread Chen Hanxiao
Signed-off-by: Chen Hanxiao chenhanx...@cn.fujitsu.com --- v3: remove optional paramter numthreads(-t) v2: add optargs_bitmask check daemon/btrfs.c | 43 +++ generator/actions.ml | 22 ++ src/MAX_PROC_NR | 2 +- 3 files