Re: [Libguestfs] supermin in Fedora Rawhide switched to using dnf instead of yum

2015-04-12 Thread Wanlong Gao
On 2015年04月11日 02:00, Richard W.M. Jones wrote: So dnf download is again fundamentally broken: https://bugzilla.redhat.com/show_bug.cgi?id=1186948 I'm going to switch supermin back to using yumdownloader. Bad news, hope dnf can really be a replacement. Thanks, Wanlong Gao Rich

Re: [Libguestfs] [PATCH 3/5] sysprep: remove the custom kdump configurations

2013-09-09 Thread Wanlong Gao
On 09/06/2013 05:23 PM, Richard W.M. Jones wrote: On Fri, Sep 06, 2013 at 04:25:07PM +0800, Wanlong Gao wrote: On 09/06/2013 04:06 PM, Richard W.M. Jones wrote: On Fri, Sep 06, 2013 at 03:52:40PM +0800, Wanlong Gao wrote: + kdump_config \ Better to call this one just kdump ? However I'm

[Libguestfs] [PATCH 2/5] sysprep: remove the NFS settings

2013-09-06 Thread Wanlong Gao
This remove the NFS settings by removing /etc/export. Signed-off-by: Wanlong Gao gaowanl...@cn.fujitsu.com --- sysprep/Makefile.am | 1 + sysprep/sysprep_operation_nfs_setting.ml | 43 2 files changed, 44 insertions(+) create mode 100644

[Libguestfs] [PATCH 5/5] sysprep: update po files

2013-09-06 Thread Wanlong Gao
Signed-off-by: Wanlong Gao gaowanl...@cn.fujitsu.com --- po/POTFILES-ml | 4 1 file changed, 4 insertions(+) diff --git a/po/POTFILES-ml b/po/POTFILES-ml index 1edca86..7bf6e1c 100644 --- a/po/POTFILES-ml +++ b/po/POTFILES-ml @@ -24,6 +24,7 @@ sysprep/sysprep_operation_firstboot.ml sysprep

Re: [Libguestfs] [PATCH 3/5] sysprep: remove the custom kdump configurations

2013-09-06 Thread Wanlong Gao
On 09/06/2013 04:06 PM, Richard W.M. Jones wrote: On Fri, Sep 06, 2013 at 03:52:40PM +0800, Wanlong Gao wrote: +kdump_config \ Better to call this one just kdump ? However I'm unclear why anyone would want to remove kdump config in a sysprep operation. Or TCP wrappers for that matter

[Libguestfs] [PATCH 1/5] sysprep: remove /var/log/audit/audit.log

2013-09-05 Thread Wanlong Gao
audit.log is already included in /var/log/audit/*. Signed-off-by: Wanlong Gao gaowanl...@cn.fujitsu.com --- sysprep/sysprep_operation_logfiles.ml | 1 - 1 file changed, 1 deletion(-) diff --git a/sysprep/sysprep_operation_logfiles.ml b/sysprep/sysprep_operation_logfiles.ml index 842b855

[Libguestfs] [PATCH 5/5] sysprep: remove iptables rules

2013-09-05 Thread Wanlong Gao
If we do not want to keep the original iptables rules, enable this operation to remove the iptables rules automatically. Signed-off-by: Wanlong Gao gaowanl...@cn.fujitsu.com --- sysprep/Makefile.am | 1 + sysprep/sysprep_operation_iptables.ml | 45

[Libguestfs] [PATCH 2/5] sysprep: remove log file of sysstat

2013-09-05 Thread Wanlong Gao
Signed-off-by: Wanlong Gao gaowanl...@cn.fujitsu.com --- sysprep/sysprep_operation_logfiles.ml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sysprep/sysprep_operation_logfiles.ml b/sysprep/sysprep_operation_logfiles.ml index cdfe8fc..b834d42 100644 --- a/sysprep

[Libguestfs] [PATCH 4/5] sysprep: remove log file of ntp

2013-09-05 Thread Wanlong Gao
Signed-off-by: Wanlong Gao gaowanl...@cn.fujitsu.com --- sysprep/sysprep_operation_logfiles.ml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sysprep/sysprep_operation_logfiles.ml b/sysprep/sysprep_operation_logfiles.ml index a8b24f1..8994af9 100644 --- a/sysprep

Re: [Libguestfs] [PATCH 5/5] sysprep: remove iptables rules

2013-09-05 Thread Wanlong Gao
this, too. right? Thanks, Wanlong Gao Rich. ___ Libguestfs mailing list Libguestfs@redhat.com https://www.redhat.com/mailman/listinfo/libguestfs

Re: [Libguestfs] [PATCH 5/5] sysprep: remove iptables rules

2013-09-05 Thread Wanlong Gao
On 09/05/2013 05:33 PM, Richard W.M. Jones wrote: On Thu, Sep 05, 2013 at 05:27:50PM +0800, Wanlong Gao wrote: On 09/05/2013 05:18 PM, Richard W.M. Jones wrote: Doesn't this delete all the firewall rules (not just removing the custom rules)? I thought that the system will not have a /etc

[Libguestfs] [PATCH V2] sysprep: remove firewall rules

2013-09-05 Thread Wanlong Gao
If we do not want to keep the original firewall rules, enable this operation to remove these rules automatically. Signed-off-by: Wanlong Gao gaowanl...@cn.fujitsu.com --- sysprep/Makefile.am | 1 + sysprep/sysprep_operation_firewall_rules.ml | 54

[Libguestfs] [PATCH] Add the .mailmap and change the method to generate AUTHORS

2012-11-27 Thread Wanlong Gao
Signed-off-by: Wanlong Gao gaowanl...@cn.fujitsu.com --- .mailmap| 13 + AUTHORS | 4 ++-- Makefile.am | 5 + 3 files changed, 16 insertions(+), 6 deletions(-) create mode 100644 .mailmap diff --git a/.mailmap b/.mailmap new file mode 100644 index 000..504fd79

Re: [Libguestfs] [PATCH V5] virt-diff: add new virt-diff tool

2012-10-30 Thread Wanlong Gao
On 10/04/2012 11:11 PM, Richard W.M. Jones wrote: Steve: See patch below. So, Steve are reviewing this patch? Thanks, Wanlong Gao Rich. On Wed, Sep 26, 2012 at 04:05:47PM +0800, Wanlong Gao wrote: add new virt-diff tool Signed-off-by: Wanlong Gao gaowanl...@cn.fujitsu.com

[Libguestfs] [PATCH 1/2] sysprep: remove fontconfig cache

2012-10-30 Thread Wanlong Gao
Remove the cache files generated by fontconfig. Signed-off-by: Wanlong Gao gaowanl...@cn.fujitsu.com --- sysprep/sysprep_operation_logfiles.ml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sysprep/sysprep_operation_logfiles.ml b/sysprep/sysprep_operation_logfiles.ml index a2b1585

[Libguestfs] [PATCH 2/2] sysprep: remove man pages cache

2012-10-30 Thread Wanlong Gao
Remove the cache files generated by man-db. Signed-off-by: Wanlong Gao gaowanl...@cn.fujitsu.com --- sysprep/sysprep_operation_logfiles.ml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sysprep/sysprep_operation_logfiles.ml b/sysprep/sysprep_operation_logfiles.ml index 1bca0dd..43fa33a

Re: [Libguestfs] [PATCH 2/2] sysprep: remove man pages cache

2012-10-30 Thread Wanlong Gao
Hi Rich, On Tue, Oct 30, 2012 at 03:50:54PM +0800, Wanlong Gao wrote: Remove the cache files generated by man-db. Signed-off-by: Wanlong Gao gaowanl...@cn.fujitsu.com --- sysprep/sysprep_operation_logfiles.ml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sysprep

Re: [Libguestfs] [PATCH 2/2] sysprep: remove man pages cache

2012-10-30 Thread Wanlong Gao
On 10/30/2012 04:25 PM, Richard W.M. Jones wrote: On Tue, Oct 30, 2012 at 04:08:44PM +0800, Wanlong Gao wrote: Hi Rich, On Tue, Oct 30, 2012 at 03:50:54PM +0800, Wanlong Gao wrote: Remove the cache files generated by man-db. Signed-off-by: Wanlong Gao gaowanl...@cn.fujitsu.com

[Libguestfs] [PATCH] NEW API: add a new api restorecon

2012-10-24 Thread Wanlong Gao
Add a new api restorecon to restore file(s) default SELinux security contexts. Signed-off-by: Wanlong Gao gaowanl...@cn.fujitsu.com --- daemon/selinux.c | 69 + generator/actions.ml | 25 + gobject/Makefile.inc |6 +- po/POTFILES |2 + src/MAX_PROC_NR

Re: [Libguestfs] [PATCH] NEW API: add a new api restorecon

2012-10-24 Thread Wanlong Gao
selinux. Do you mean IfAvailable of HAVE_LIBSELINUX here? Thanks, Wanlong Gao ___ Libguestfs mailing list Libguestfs@redhat.com https://www.redhat.com/mailman/listinfo/libguestfs

[Libguestfs] [PATCH V2] NEW API: add a new api restorecon

2012-10-24 Thread Wanlong Gao
Add a new api restorecon to restore file(s) default SELinux security contexts. Signed-off-by: Wanlong Gao gaowanl...@cn.fujitsu.com --- daemon/selinux.c | 54 + generator/actions.ml | 26 + gobject/Makefile.inc |6 +- po/POTFILES |1 + src/MAX_PROC_NR

[Libguestfs] [PATCH V3] NEW API: add a new api restorecon

2012-10-24 Thread Wanlong Gao
Add a new api restorecon to restore file(s) default SELinux security contexts. Signed-off-by: Wanlong Gao gaowanl...@cn.fujitsu.com --- daemon/selinux.c | 52 generator/actions.ml | 26 ++ gobject/Makefile.inc | 6

[Libguestfs] [PATCH] TODO: remove the already implemented yum cache clean feature

2012-10-17 Thread Wanlong Gao
The cleanup of package managers cache is already implemented by sprep_operation_package_manager_cache.ml, so remove this TODO item. Signed-off-by: Wanlong Gao gaowanl...@cn.fujitsu.com --- TODO | 1 - 1 file changed, 1 deletion(-) diff --git a/TODO b/TODO index d9dd1d3..44fee34 100644

[Libguestfs] [PATCH] NEW API: mktemp

2012-10-14 Thread Wanlong Gao
Used to create temporary directory or file with an optional suffix. Signed-off-by: Wanlong Gao gaowanl...@cn.fujitsu.com --- daemon/dir.c | 61 generator/actions.ml | 36 +++ gobject/Makefile.inc | 6

[Libguestfs] [PATCH V4] virt-diff: add new virt-diff tool

2012-09-26 Thread Wanlong Gao
add new virt-diff tool Signed-off-by: Wanlong Gao gaowanl...@cn.fujitsu.com --- cat/Makefile.am | 35 +++- cat/virt-diff.c | 589 ++ cat/virt-diff.pod | 214 po/POTFILES | 2 + 4 files changed, 837 insertions

[Libguestfs] [PATCH V5] virt-diff: add new virt-diff tool

2012-09-26 Thread Wanlong Gao
add new virt-diff tool Signed-off-by: Wanlong Gao gaowanl...@cn.fujitsu.com --- cat/Makefile.am | 35 +++- cat/virt-diff.c | 589 ++ cat/virt-diff.pod | 214 po/POTFILES | 2 + 4 files changed, 837 insertions

[Libguestfs] [PATCH] virt-cat: remove the useless h option

2012-09-26 Thread Wanlong Gao
h option is not enabled in virt-cat, remove it. Signed-off-by: Wanlong Gao gaowanl...@cn.fujitsu.com --- cat/virt-cat.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/cat/virt-cat.c b/cat/virt-cat.c index 2a6b64f..5ea461e 100644 --- a/cat/virt-cat.c +++ b/cat/virt-cat.c @@ -158,9 +158,6

[Libguestfs] [PATCH V2] remove the useless h option

2012-09-26 Thread Wanlong Gao
h option is not enabled in virt-cat, remove it. Signed-off-by: Wanlong Gao gaowanl...@cn.fujitsu.com --- cat/virt-cat.c | 3 --- edit/virt-edit.c | 3 --- inspector/virt-inspector.c | 3 --- rescue/virt-rescue.c | 3 --- 4 files changed, 12 deletions(-) diff --git

[Libguestfs] [PATCH V5] NEW API:ext:mke2fs

2012-09-24 Thread Wanlong Gao
New api mke2fs for full configuration of filesystem. Signed-off-by: Wanlong Gao gaowanl...@cn.fujitsu.com --- daemon/ext2.c | 369 +- generator/actions.ml | 91 gobject/Makefile.inc | 6 +- po/POTFILES

Re: [Libguestfs] [PATCH V4] NEW API:ext:mke2fs

2012-09-19 Thread Wanlong Gao
On 09/18/2012 04:22 PM, Wanlong Gao wrote: New api mke2fs for full configuration of filesystem. Signed-off-by: Wanlong Gao gaowanl...@cn.fujitsu.com --- Hi Rich, I made this new version by rebasing against the lastest tree, there is something wrong with the test of mke2journal_U

Re: [Libguestfs] [PATCH V3] virt-diff: add new virt-diff tool

2012-09-19 Thread Wanlong Gao
On 08/21/2012 04:25 PM, Richard W.M. Jones wrote: On Tue, Aug 21, 2012 at 04:04:54PM +0800, Wanlong Gao wrote: [...] + spid = fork (); + if (spid == -1) { +perror (fork); +exit (EXIT_FAILURE); + } + if (spid == 0) { +if (guestfs_mount_local_run (sg) == -1) + exit

[Libguestfs] [PATCH V4] NEW API:ext:mke2fs

2012-09-18 Thread Wanlong Gao
New api mke2fs for full configuration of filesystem. Signed-off-by: Wanlong Gao gaowanl...@cn.fujitsu.com --- Hi Rich, I made this new version by rebasing against the lastest tree, there is something wrong with the test of mke2journal_U, please review and teach me, thank you. Regards, Wanlong

Re: [Libguestfs] [PATCH V3] NEW API:ext:mke2fs

2012-09-17 Thread Wanlong Gao
On 09/11/2012 08:53 PM, Wanlong Gao wrote: New api mke2fs for full configuration of filesystem. Hi Rich, I fixed as your comments, but see this error, Fatal error: exception Failure(function mke2journal has tests but does not test itself) How should I fix this problem ? And can you review

Re: [Libguestfs] [PATCH V3] NEW API:ext:mke2fs

2012-09-17 Thread Wanlong Gao
On 09/17/2012 03:12 PM, Richard W.M. Jones wrote: On Mon, Sep 17, 2012 at 02:39:17PM +0800, Wanlong Gao wrote: On 09/11/2012 08:53 PM, Wanlong Gao wrote: New api mke2fs for full configuration of filesystem. Hi Rich, I fixed as your comments, but see this error, Fatal error

Re: [Libguestfs] guestfsd process dead while quitting guestfish

2012-09-13 Thread Wanlong Gao
finish your operations to the guest, and will be started when you use guestfish next time. It's the design of guestfs, not a bug. Thanks, Wanlong Gao thanks. ___ Libguestfs mailing list Libguestfs@redhat.com https://www.redhat.com/mailman/listinfo

[Libguestfs] [PATCH V3] NEW API:ext:mke2fs

2012-09-11 Thread Wanlong Gao
New api mke2fs for full configuration of filesystem. Signed-off-by: Wanlong Gao gaowanl...@cn.fujitsu.com --- daemon/ext2.c | 369 +- generator/actions.ml | 85 ++- gobject/Makefile.inc | 6 +- guestfs-release-notes.txt

Re: [Libguestfs] modify running VM's image

2012-09-06 Thread Wanlong Gao
On 09/06/2012 03:58 PM, 周涛 wrote: hi jones! is there any way to modify running VM's image using libguestfs? i want to install some softwares onto the running vm. Use libguestfs on a running VM may cause security problems, it may corrupt your data in the VM. Don't do this! Thanks, Wanlong

Re: [Libguestfs] [PATCH V2 1/2] NEW API:ext:mke2fs

2012-09-05 Thread Wanlong Gao
On 09/03/2012 01:50 PM, Wanlong Gao wrote: New api mke2fs for full configuration of filesystem. Missed this? Thanks, Wanlong Gao Signed-off-by: Wanlong Gao gaowanl...@cn.fujitsu.com --- daemon/ext2.c| 452 +++ generator

Re: [Libguestfs] [PATCH V1] NEW API:ext:mke2fs

2012-09-03 Thread Wanlong Gao
On 09/03/2012 03:44 PM, Richard W.M. Jones wrote: On Mon, Sep 03, 2012 at 11:44:15AM +0800, Wanlong Gao wrote: On 08/31/2012 06:00 PM, Wanlong Gao wrote: New api mke2fs for full configuration of filesystem. Signed-off-by: Wanlong Gao gaowanl...@cn.fujitsu.com --- daemon/ext2.c

[Libguestfs] [PATCH V2 1/2] NEW API:ext:mke2fs

2012-09-02 Thread Wanlong Gao
New api mke2fs for full configuration of filesystem. Signed-off-by: Wanlong Gao gaowanl...@cn.fujitsu.com --- daemon/ext2.c| 452 +++ generator/actions.ml | 18 ++ gobject/Makefile.inc | 6 +- src/MAX_PROC_NR | 2 +- 4 files

Re: [Libguestfs] compile libguestfs 1.19.35

2012-08-31 Thread Wanlong Gao
/ Thanks, Wanlong Gao

[Libguestfs] [PATCH V1] NEW API:ext:mke2fs

2012-08-31 Thread Wanlong Gao
New api mke2fs for full configuration of filesystem. Signed-off-by: Wanlong Gao gaowanl...@cn.fujitsu.com --- daemon/ext2.c | 452 + generator/generator_actions.ml | 18 ++ gobject/Makefile.inc | 6 +- src/MAX_PROC_NR

Re: [Libguestfs] [PATCH V2] NEW API:xfs:xfs_repair

2012-08-29 Thread Wanlong Gao
; if (!is_device) { /* do the sysroot adjustment, and add -f parameter */ } else { /* just add device parameter */ } Sorry, I can't understand here, since the original xfs_repair command just receive device as its parameter, I wonder why do you suggest to use Dev_or_path here. Thanks, Wanlong

Re: [Libguestfs] [PATCH V2] NEW API:xfs:xfs_repair

2012-08-29 Thread Wanlong Gao
On 08/29/2012 04:59 PM, Richard W.M. Jones wrote: On Wed, Aug 29, 2012 at 03:32:48PM +0800, Wanlong Gao wrote: On 08/28/2012 09:06 PM, Richard W.M. Jones wrote: + if (!(optargs_bitmask GUESTFS_XFS_REPAIR_IMGFILE_BITMASK)) +imgfile = 0; This xfs_repair -f option is annoying! Also

[Libguestfs] [PATCH V3] NEW API:xfs:xfs_repair

2012-08-29 Thread Wanlong Gao
Add a new api xfs_repair for repairing an XFS filesystem. Signed-off-by: Wanlong Gao gaowanl...@cn.fujitsu.com --- daemon/xfs.c | 131 + generator/generator_actions.ml | 25 gobject/Makefile.inc | 6 +- guestfs

[Libguestfs] [PATCH V4] NEW API:xfs:xfs_repair

2012-08-29 Thread Wanlong Gao
Add a new api xfs_repair for repairing an XFS filesystem. Signed-off-by: Wanlong Gao gaowanl...@cn.fujitsu.com --- daemon/xfs.c | 128 + generator/generator_actions.ml | 25 gobject/Makefile.inc | 6 +- guestfs

Re: [Libguestfs] [PATCH V2] NEW API:xfs:xfs_repair

2012-08-28 Thread Wanlong Gao
On 08/26/2012 05:23 PM, Wanlong Gao wrote: On 08/22/2012 02:41 PM, Wanlong Gao wrote: Add a new api xfs_repair for repairing an XFS filesystem. Signed-off-by: Wanlong Gao gaowanl...@cn.fujitsu.com --- daemon/xfs.c | 116

Re: [Libguestfs] [PATCH V2] NEW API:xfs:xfs_repair

2012-08-26 Thread Wanlong Gao
On 08/22/2012 02:41 PM, Wanlong Gao wrote: Add a new api xfs_repair for repairing an XFS filesystem. Signed-off-by: Wanlong Gao gaowanl...@cn.fujitsu.com --- daemon/xfs.c | 116 + generator/generator_actions.ml | 25

[Libguestfs] [PATCH V2] NEW API:xfs:xfs_repair

2012-08-22 Thread Wanlong Gao
Add a new api xfs_repair for repairing an XFS filesystem. Signed-off-by: Wanlong Gao gaowanl...@cn.fujitsu.com --- daemon/xfs.c | 116 + generator/generator_actions.ml | 25 + gobject/Makefile.inc | 6 ++- guestfs

Re: [Libguestfs] [PATCH V3] virt-diff: add new virt-diff tool

2012-08-21 Thread Wanlong Gao
On 08/21/2012 04:25 PM, Richard W.M. Jones wrote: On Tue, Aug 21, 2012 at 04:04:54PM +0800, Wanlong Gao wrote: [...] + spid = fork (); + if (spid == -1) { +perror (fork); +exit (EXIT_FAILURE); + } + if (spid == 0) { +if (guestfs_mount_local_run (sg) == -1) + exit

[Libguestfs] [PATCH] xfs: add new api xfs_admin

2012-08-20 Thread Wanlong Gao
Add new api xfs_admin to change parameters of an XFS filesystem. Signed-off-by: Wanlong Gao gaowanl...@cn.fujitsu.com --- daemon/xfs.c | 78 ++ generator/generator_actions.ml | 21 gobject/Makefile.inc | 6

Re: [Libguestfs] [PATCH] xfs: add new api xfs_admin

2012-08-20 Thread Wanlong Gao
On 08/20/2012 04:00 PM, Richard W.M. Jones wrote: On Mon, Aug 20, 2012 at 03:51:54PM +0800, Wanlong Gao wrote: Add new api xfs_admin to change parameters of an XFS filesystem. Signed-off-by: Wanlong Gao gaowanl...@cn.fujitsu.com I've just realized that I forgot about the virt-diff patch

[Libguestfs] [PATCH V2 2/2] xfs_growfs: drop the unstructed output

2012-08-20 Thread Wanlong Gao
Just drop the unstructed output since we can get the structed info from xfs_info instead. Signed-off-by: Wanlong Gao gaowanl...@cn.fujitsu.com --- daemon/xfs.c | 13 ++--- generator/generator_actions.ml | 2 +- 2 files changed, 7 insertions(+), 8 deletions(-) diff

[Libguestfs] [PATCH V3] virt-diff: add new virt-diff tool

2012-08-20 Thread Wanlong Gao
add new virt-diff tool Signed-off-by: Wanlong Gao gaowanl...@cn.fujitsu.com --- cat/Makefile.am | 20 ++- cat/virt-diff.c | 525 po/POTFILES | 1 + 3 files changed, 545 insertions(+), 1 deletion(-) create mode 100644 cat/virt

Re: [Libguestfs] [PATCH V2 2/2] xfs_growfs: drop the unstructed output

2012-08-20 Thread Wanlong Gao
On 08/20/2012 04:23 PM, Richard W.M. Jones wrote: On Mon, Aug 20, 2012 at 04:17:01PM +0800, Wanlong Gao wrote: Just drop the unstructed output since we can get the structed info from xfs_info instead. OK. I will push it later today. NB: This change is only acceptable because this API

[Libguestfs] [PATCH] sysprep: remove the process accounting log files

2012-08-08 Thread Wanlong Gao
We just remove the process accounting files previously without touch a empty file, this will cause psacct runs error. Restart the service can't help us create this file auto. couldn't open file '/var/account/pacct': No such file or directory Signed-off-by: Wanlong Gao gaowanl...@cn.fujitsu.com

[Libguestfs] [PATCH V2] virt-diff: add new virt-diff tool

2012-08-06 Thread Wanlong Gao
add new virt-diff tool Signed-off-by: Wanlong Gao gaowanl...@cn.fujitsu.com --- Hi Rich, It can work now, please give some comments. ;) Cheers, Wanlong Gao cat/Makefile.am | 20 ++- cat/virt-diff.c | 525 po/POTFILES | 1 + 3

[Libguestfs] [PATCH] xfs: fix a possible memory leak

2012-08-06 Thread Wanlong Gao
free out when failure. Signed-off-by: Wanlong Gao gaowanl...@cn.fujitsu.com --- daemon/xfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/daemon/xfs.c b/daemon/xfs.c index 73ba791..b331b9b 100644 --- a/daemon/xfs.c +++ b/daemon/xfs.c @@ -457,5 +457,6 @@ do_xfs_growfs (const char *path

[Libguestfs] [PATCH] RELEASE-NOTES: fix typo

2012-08-05 Thread Wanlong Gao
Fix typo. Signed-off-by: Wanlong Gao gaowanl...@cn.fujitsu.com --- RELEASE-NOTES | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 6407cba..9242d34 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -33,7 +33,7 @@ New features - virt

[Libguestfs] [PATCH V2] xfs: add new api xfs-growfs

2012-08-01 Thread Wanlong Gao
New api xfs_growfs for expanding a XFS filesystem. Signed-off-by: Wanlong Gao gaowanl...@cn.fujitsu.com --- daemon/xfs.c | 111 + generator/generator_actions.ml | 28 +++ gobject/Makefile.inc | 6 ++- po/POTFILES

Re: [Libguestfs] [PATCH V3 2/2] xfs_info: resolve device when doing xfs_info on a device

2012-07-24 Thread Wanlong Gao
On 07/24/2012 04:32 PM, Richard W.M. Jones wrote: On Mon, Jul 23, 2012 at 05:51:32PM +0800, Wanlong Gao wrote: -style = RStruct (info, xfsinfo), [Pathname path], []; +style = RStruct (info, xfsinfo), [String pathordevice], []; Actually NACK to this. I don't understand why you don't

[Libguestfs] [PATCH V4 2/3] xfs_info: resolve device when doing xfs_info on a device

2012-07-24 Thread Wanlong Gao
Resolve device first, like do_umount. Use Dev_or_Path. Signed-off-by: Wanlong Gao gaowanl...@cn.fujitsu.com --- daemon/xfs.c | 21 - generator/generator_actions.ml | 2 +- 2 files changed, 9 insertions(+), 14 deletions(-) diff --git a/daemon/xfs.c b/daemon

[Libguestfs] [PATCH V4 1/3] umount: add force umount and lazy umount

2012-07-24 Thread Wanlong Gao
Add the option force and lazy for force and lazy umount. Signed-off-by: Wanlong Gao gaowanl...@cn.fujitsu.com --- daemon/mount.c | 25 +++-- generator/generator_actions.ml | 23 --- gobject/Makefile.inc | 2 ++ po/POTFILES

[Libguestfs] [PATCH V4 3/3] umount: use Dev_or_Path for the argument type

2012-07-24 Thread Wanlong Gao
Use Dev_or_Path. Remove the RESOLVE_DEVICE since Dev_or_Path will generate the resolve code. Signed-off-by: Wanlong Gao gaowanl...@cn.fujitsu.com --- daemon/mount.c | 3 --- generator/generator_actions.ml | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git

Re: [Libguestfs] [PATCH V2 4/4] umount: use Dev_or_Path instead of untype

2012-07-23 Thread Wanlong Gao
On 07/23/2012 04:16 PM, Richard W.M. Jones wrote: On Mon, Jul 23, 2012 at 11:43:23AM +0800, Wanlong Gao wrote: Use Dev_or_Path type for device or path arguments. Signed-off-by: Wanlong Gao gaowanl...@cn.fujitsu.com --- generator/generator_actions.ml | 2 +- 1 file changed, 1 insertion

Re: [Libguestfs] [PATCH V2 4/4] umount: use Dev_or_Path instead of untype

2012-07-23 Thread Wanlong Gao
On 07/23/2012 05:02 PM, Richard W.M. Jones wrote: On Mon, Jul 23, 2012 at 04:40:35PM +0800, Wanlong Gao wrote: On 07/23/2012 04:16 PM, Richard W.M. Jones wrote: On Mon, Jul 23, 2012 at 11:43:23AM +0800, Wanlong Gao wrote: Use Dev_or_Path type for device or path arguments. Signed-off

[Libguestfs] [PATCH V2 1/4] mount: add a macro to resolve path or device

2012-07-22 Thread Wanlong Gao
Add a macro STRDUP_RESOLVE_DEVICE_OR_PATH to resolve path or device. Signed-off-by: Wanlong Gao gaowanl...@cn.fujitsu.com --- daemon/daemon.h | 16 daemon/mount.c | 13 ++--- 2 files changed, 18 insertions(+), 11 deletions(-) diff --git a/daemon/daemon.h b/daemon

[Libguestfs] [PATCH V2 3/4] umount: add force umount and lazy umount

2012-07-22 Thread Wanlong Gao
Add the option force and lazy for force and lazy umount. Signed-off-by: Wanlong Gao gaowanl...@cn.fujitsu.com --- daemon/mount.c | 25 +++-- generator/generator_actions.ml | 23 --- gobject/Makefile.inc | 2 ++ po/POTFILES

[Libguestfs] [PATCH 4/5] xfs_info: tidy up the log path message

2012-07-21 Thread Wanlong Gao
Before patch: fs xfs-info /badpath libguestfs: error: xfs_info: xfs_info: /sysroot/badpath is not a mounted XFS filesystem After patch: fs xfs-info /badpath libguestfs: error: xfs_info: xfs_info: /badpath is not a mounted XFS filesystem Signed-off-by: Wanlong Gao gaowanl...@cn.fujitsu.com

[Libguestfs] [PATCH 3/5] umount: add force umount and lazy umount

2012-07-21 Thread Wanlong Gao
Add the option force and lazy for force and lazy umount. Signed-off-by: Wanlong Gao gaowanl...@cn.fujitsu.com --- daemon/mount.c | 25 +++-- generator/generator_actions.ml | 22 +++--- gobject/Makefile.inc | 2 ++ po/POTFILES

Re: [Libguestfs] [PATCH 4/5] xfs_info: tidy up the log path message

2012-07-21 Thread Wanlong Gao
On 07/21/2012 07:08 PM, Richard W.M. Jones wrote: On Sat, Jul 21, 2012 at 03:27:16PM +0800, Wanlong Gao wrote: Before patch: fs xfs-info /badpath libguestfs: error: xfs_info: xfs_info: /sysroot/badpath is not a mounted XFS filesystem After patch: fs xfs-info /badpath libguestfs: error

Re: [Libguestfs] [PATCH 3/5] umount: add force umount and lazy umount

2012-07-21 Thread Wanlong Gao
On 07/21/2012 08:26 PM, Richard W.M. Jones wrote: On Sat, Jul 21, 2012 at 03:27:15PM +0800, Wanlong Gao wrote: Add the option force and lazy for force and lazy umount. What are these options used for? I think maybe they are useful for libguestfs live, but not for the libguestfs appliance

[Libguestfs] [PATCH] fuse:remove the unused macro when fuse is not available

2012-07-20 Thread Wanlong Gao
Just make gcc happy when fuse is not available. Signed-off-by: Wanlong Gao gaowanl...@cn.fujitsu.com --- src/fuse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fuse.c b/src/fuse.c index 2bd6787..349a5b9 100644 --- a/src/fuse.c +++ b/src/fuse.c @@ -25,6 +25,7

[Libguestfs] [PATCH V5] NEW API: add new api xfs_info

2012-07-17 Thread Wanlong Gao
Add xfs_info to show the geometry of the xfs filesystem. Signed-off-by: Wanlong Gao gaowanl...@cn.fujitsu.com --- daemon/Makefile.am | 1 + daemon/xfs.c | 314 +++ generator/generator_actions.ml | 17

[Libguestfs] [PATCH V6] NEW API: add new api xfs_info

2012-07-17 Thread Wanlong Gao
Add xfs_info to show the geometry of the xfs filesystem. Signed-off-by: Wanlong Gao gaowanl...@cn.fujitsu.com --- daemon/Makefile.am | 1 + daemon/xfs.c | 312 +++ generator/generator_actions.ml | 18

Re: [Libguestfs] [PATCH V4] NEW API: add new api xfs_info

2012-07-16 Thread Wanlong Gao
On 07/16/2012 05:15 PM, Richard W.M. Jones wrote: On Mon, Jul 16, 2012 at 05:05:39PM +0800, Wanlong Gao wrote: Add xfs_info to show the geometry of the xfs filesystem. Signed-off-by: Wanlong Gao gaowanl...@cn.fujitsu.com Hi Rich, I got an odd error, can you help me with this error or give

Re: [Libguestfs] [PATCH V2] NEW API: add new api xfs_info

2012-07-12 Thread Wanlong Gao
On 07/12/2012 04:06 PM, Richard W.M. Jones wrote: On Thu, Jul 12, 2012 at 11:15:57AM +0800, Wanlong Gao wrote: Add xfs_info to show the geometry of the xfs filesystem. Signed-off-by: Wanlong Gao gaowanl...@cn.fujitsu.com --- Hi Rich, This is the v2 version, please help reviewing

[Libguestfs] [PATCH V2] NEW API: add new api xfs_info

2012-07-11 Thread Wanlong Gao
Add xfs_info to show the geometry of the xfs filesystem. Signed-off-by: Wanlong Gao gaowanl...@cn.fujitsu.com --- Hi Rich, This is the v2 version, please help reviewing. Formated the output, but seems that there's also something wrong. And I'll add self test in next version. Thanks, Wanlong

[Libguestfs] [PATCH] NEW API: add new api xfs_info

2012-07-09 Thread Wanlong Gao
Add xfs_info to show the geometry of the xfs filesystem. Signed-off-by: Wanlong Gao gaowanl...@cn.fujitsu.com --- Hi Rich, This patch add xfs_info, and start the xfs support work. I'd like to add the xfs support, like xfs_growfs, xfs_io, xfs_db, xfs_repair etc. Any thoughts? Thanks, Wanlong

Re: [Libguestfs] [PATCH] NEW API: add new api xfs_info

2012-07-09 Thread Wanlong Gao
On 07/09/2012 05:08 PM, Richard W.M. Jones wrote: On Mon, Jul 09, 2012 at 04:37:52PM +0800, Wanlong Gao wrote: Add xfs_info to show the geometry of the xfs filesystem. Signed-off-by: Wanlong Gao gaowanl...@cn.fujitsu.com --- Hi Rich, This patch add xfs_info, and start the xfs support

Re: [Libguestfs] [PATCH] NEW API: add new api xfs_info

2012-07-09 Thread Wanlong Gao
On 07/09/2012 05:28 PM, Richard W.M. Jones wrote: On Mon, Jul 09, 2012 at 05:15:47PM +0800, Wanlong Gao wrote: rescue xfs_info /dev/vda1 meta-data=/dev/vda1 isize=256agcount=4, agsize=655358 blks = sectsz=512 attr=2 data

Re: [Libguestfs] [RFC] virt-diff: add new virt-diff tool

2012-07-02 Thread Wanlong Gao
On 07/02/2012 05:28 PM, Richard W.M. Jones wrote: On Tue, Jun 19, 2012 at 05:24:26PM +0800, Wanlong Gao wrote: add new virt-diff tool Signed-off-by: Wanlong Gao gaowanl...@cn.fujitsu.com --- Hi Rich, This just a thought of virt-diff tool, I send it out ASAP to ask your opinions. Now, I

[Libguestfs] shared library path

2012-06-26 Thread Wanlong Gao
allocations (internal) . We installed the lib to the wrong path? Thanks, Wanlong Gao ___ Libguestfs mailing list Libguestfs@redhat.com https://www.redhat.com/mailman/listinfo/libguestfs

Re: [Libguestfs] shared library path

2012-06-26 Thread Wanlong Gao
On 06/26/2012 03:48 PM, Richard W.M. Jones wrote: On Tue, Jun 26, 2012 at 02:45:36PM +0800, Wanlong Gao wrote: Hi Rich, I meet below thing, [root@gaowanlong libguestfs]# virt-sysprep --help virt-sysprep: error while loading shared libraries: libguestfs.so.0: cannot open shared object file

Re: [Libguestfs] shared library path

2012-06-26 Thread Wanlong Gao
not. So, I think there must be some thing wrong here. Thanks, Wanlong Gao Rich. ___ Libguestfs mailing list Libguestfs@redhat.com https://www.redhat.com/mailman/listinfo/libguestfs

[Libguestfs] [RFC] virt-diff: add new virt-diff tool

2012-06-19 Thread Wanlong Gao
add new virt-diff tool Signed-off-by: Wanlong Gao gaowanl...@cn.fujitsu.com --- Hi Rich, This just a thought of virt-diff tool, I send it out ASAP to ask your opinions. Now, I just implement two guest, one SEED guest and one DIFF guest, and the patch is wholly untested. Please take patient

Re: [Libguestfs] guestfish1.7.17 does not support qemu-kvm1.0.93?

2012-06-04 Thread Wanlong Gao
Hi, Sorry, I'll be offline this week untill this Sat. and have not time to look into your results. Maybe Rich will reply you after his UK holiday. Thanks, Wanlong Gao On 6/4/12, Xing.x.Gao itx...@gmail.com wrote: Here is another test result with qemu-kvm1.0.94: #time libguestfs-test-tool

Re: [Libguestfs] guestfish1.7.17 does not support qemu-kvm1.0.93?

2012-06-03 Thread Wanlong Gao
/usr/bin/libguestfs-test-tool and post the results? Thanks, Wanlong Gao i build qemu-kvm like bellow: ./configure --target-list=x86_64-softmmu \ --prefix=/usr/local/qemu-kvm \ --sysconfdir=/etc \ --audio-drv-list=alsa \ --audio-card-list

Re: [Libguestfs] New tool proposal

2012-05-27 Thread Wanlong Gao
On 05/23/2012 05:09 PM, Richard W.M. Jones wrote: On Wed, May 23, 2012 at 04:45:22PM +0800, Wanlong Gao wrote: Kame gave me a very good detail about the use case of virt-diff example, now quoted them for you, Anyway, in above scheme, we cannot compare the files of the same size

[Libguestfs] [PATCH] sysprep: remove the data and log files of puppet

2012-05-25 Thread Wanlong Gao
Remove the data(keys) and log files of puppet. Signed-off-by: Wanlong Gao gaowanl...@cn.fujitsu.com --- TODO |1 - sysprep/Makefile.am |2 + sysprep/sysprep_operation_puppet_data_log.ml | 52 ++ 3

Re: [Libguestfs] virt-sysprep on Windows Guest

2012-05-25 Thread Wanlong Gao
On 05/25/2012 03:30 PM, Richard W.M. Jones wrote: On Fri, May 25, 2012 at 01:47:53PM +0800, Wanlong Gao wrote: Hi Rich, folks, I wont to start doing the windows guest support for virt-sysprep, Any thoughts? What do you think should be prepared on a new cloned windows guest? The main

Re: [Libguestfs] virt-sysprep on Windows Guest

2012-05-25 Thread Wanlong Gao
On 05/25/2012 04:47 PM, Richard W.M. Jones wrote: On Fri, May 25, 2012 at 03:52:53PM +0800, Wanlong Gao wrote: On 05/25/2012 03:46 PM, Richard W.M. Jones wrote: Windows has a sysprep tool which does the right thing for all Windows guests, and it's impossible to know what that tool does

Re: [Libguestfs] New tool proposal

2012-05-22 Thread Wanlong Gao
On 05/15/2012 04:41 PM, Richard W.M. Jones wrote: On Tue, May 15, 2012 at 04:13:27PM +0800, Wanlong Gao wrote: Hi Rich, We just talked about a new tool virt-diff which can diff files between two guest, suggested by Kamezawa Hiroyuki kamezawa.hir...@jp.fujitsu.com things like below

Re: [Libguestfs] 【help】why not support showing filename containing chinese characters with the ls function?

2012-05-22 Thread Wanlong Gao
LC_MONETARY=C LC_MESSAGES=C LC_PAPER=C LC_NAME=C LC_ADDRESS=C LC_TELEPHONE=C LC_MEASUREMENT=C LC_IDENTIFICATION=C LC_ALL=C Thanks, Wanlong Gao ___ Libguestfs mailing list Libguestfs@redhat.com https://www.redhat.com/mailman/listinfo/libguestfs

Re: [Libguestfs] 【help】why not support showing filename containing chinese characters with the ls function?

2012-05-22 Thread Wanlong Gao
ll / total 20 drwxr-xr-x 2 root root 16384 Jan 1 1970 . drwxr-xr-x 23 1000 1000 4096 May 22 20:07 .. fs mkdir /新建文件夹 libguestfs: error: mkdir: /新建文件夹: Invalid argument thanks, Wanlong Gao ___ Libguestfs mailing list Libguestfs@redhat.com https

[Libguestfs] [PATCH] TODO: sysprep todo list clearance

2012-05-22 Thread Wanlong Gao
Remove the implemented features from TODO list. Signed-off-by: Wanlong Gao gaowanl...@cn.fujitsu.com --- TODO |3 --- 1 file changed, 3 deletions(-) diff --git a/TODO b/TODO index 93f8787..b2d53d7 100644 --- a/TODO +++ b/TODO @@ -377,15 +377,12 @@ virt-sysprep ideas

[Libguestfs] [PATCH] sysprep: remove kerberos data in the guest

2012-05-18 Thread Wanlong Gao
Remove the generated kerberos data in the guest. Signed-off-by: Wanlong Gao gaowanl...@cn.fujitsu.com --- sysprep/Makefile.am|2 ++ sysprep/sysprep_operation_kerberos_data.ml | 52 2 files changed, 54 insertions(+) create mode 100644

Re: [Libguestfs] [PATCH] NEW API: add new api btrfs-fsck

2012-05-15 Thread Wanlong Gao
On 05/15/2012 03:43 PM, Richard W.M. Jones wrote: On Tue, May 15, 2012 at 10:33:42AM +0800, Wanlong Gao wrote: Add the new API btrfs-fsck to check the btrfs filesystem. Btrfs is currently under heavy development, and not suitable for any uses other than benchmarking and review. But it'll

Re: [Libguestfs] New tool proposal

2012-05-15 Thread Wanlong Gao
On 05/15/2012 04:33 PM, Matthew Booth wrote: On 15/05/12 09:13, Wanlong Gao wrote: Hi Rich, We just talked about a new tool virt-diff which can diff files between two guest, suggested by Kamezawa Hiroyukikamezawa.hir...@jp.fujitsu.com things like below, # virt-diff -Nru --guest=Guest0

[Libguestfs] [PATCH] NEW API: add new api btrfs-fsck

2012-05-14 Thread Wanlong Gao
Add the new API btrfs-fsck to check the btrfs filesystem. Btrfs is currently under heavy development, and not suitable for any uses other than benchmarking and review. But it'll be useful in the near future. Signed-off-by: Wanlong Gao gaowanl...@cn.fujitsu.com --- daemon/btrfs.c

  1   2   >