[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] libguestfs question - multiple partitions in the guest

2012-08-01 Thread Richard W.M. Jones
On Wed, Aug 01, 2012 at 11:47:14AM -0500, Shawn Kennedy wrote: Problem: When trying to inspect the guest using a command like 'virt-ls', we get back: ~]# virt-ls -d guest /path virt-ls: multi-boot operating systems are not supported by the -i option What does virt-inspector2 [this is RHEL

Re: [Libguestfs] libguestfs question - multiple partitions in the guest

2012-08-01 Thread Shawn Kennedy
Hi Richard, Because I have 2 filesystems (one in a mounted LV and one in a unmounted LV), I get 2 sets of mountpoints in virt-inspector2 mountpoints mountpoint dev=/dev/VG1/LV0001.root//mountpoint mountpoint dev=/dev/VG1/LV0001.var/var/mountpoint mountpoint

Re: [Libguestfs] libguestfs question - multiple partitions in the guest

2012-08-01 Thread Richard W.M. Jones
On Wed, Aug 01, 2012 at 01:19:45PM -0500, Shawn Kennedy wrote: Hi Richard, Because I have 2 filesystems (one in a mounted LV and one in a unmounted LV), I get 2 sets of mountpoints in virt-inspector2 mountpoints mountpoint dev=/dev/VG1/LV0001.root//mountpoint

Re: [Libguestfs] libguestfs question - multiple partitions in the guest

2012-08-01 Thread Shawn Kennedy
Hi Rich, Let's handle the easy one first: # rpm -qa | grep libguestfs-tools-c libguestfs-tools-c-1.7.17-26.el6.x86_64 # rpm -ql libguestfs-tools-c /usr/bin/virt-cat /usr/bin/virt-df /usr/bin/virt-filesystems /usr/bin/virt-inspector2 /usr/bin/virt-ls /usr/bin/virt-rescue

Re: [Libguestfs] libguestfs question - multiple partitions in the guest

2012-08-01 Thread Shawn Kennedy
On Wed, Aug 01, 2012 at 08:54:01PM +0100, Richard W.M. Jones wrote: (1) You could look at tell-tale signs to see which root device has most recently been mounted. Probably the simplest thing is to look at the date of /var/log/messages in each potential root, and choose the most recent

Re: [Libguestfs] libguestfs question - multiple partitions in the guest

2012-08-01 Thread Shawn Kennedy
-Original Message- From: libguestfs-boun...@redhat.com [mailto:libguestfs-boun...@redhat.com] On Behalf Of Shawn Kennedy Sent: Wednesday, August 01, 2012 3:34 PM To: libguestfs@redhat.com Cc: 'Smudde, Mark Alan (Mark)'; 'Tockstein, James E (Jim)' Subject: Re: [Libguestfs]

Re: [Libguestfs] libguestfs question - multiple partitions in the guest

2012-08-01 Thread Richard W.M. Jones
On Wed, Aug 01, 2012 at 03:23:24PM -0500, Shawn Kennedy wrote: Hi Rich, Let's handle the easy one first: # rpm -qa | grep libguestfs-tools-c libguestfs-tools-c-1.7.17-26.el6.x86_64 # rpm -ql libguestfs-tools-c /usr/bin/virt-cat /usr/bin/virt-df /usr/bin/virt-filesystems

Re: [Libguestfs] libguestfs question - multiple partitions in the guest

2012-08-01 Thread Shawn Kennedy
-Original Message- From: Richard W.M. Jones [mailto:rjo...@redhat.com] Sent: Wednesday, August 01, 2012 3:53 PM To: Shawn Kennedy Cc: libguestfs@redhat.com; 'Smudde, Mark Alan (Mark)'; 'Tockstein, James E (Jim)' Subject: Re: [Libguestfs] libguestfs question - multiple partitions in

Re: [Libguestfs] libguestfs question - multiple partitions in the guest

2012-08-01 Thread Shawn Kennedy
-Original Message- From: libguestfs-boun...@redhat.com [mailto:libguestfs-boun...@redhat.com] On Behalf Of Shawn Kennedy From: Richard W.M. Jones [mailto:rjo...@redhat.com] (2) You could try doing what virt-v2v does, which is to parse the grub configuration to find out what root

Re: [Libguestfs] libguestfs question - multiple partitions in the guest

2012-08-01 Thread Richard W.M. Jones
On Wed, Aug 01, 2012 at 03:31:19PM -0500, Shawn Kennedy wrote: I wonder - maybe an new tool (virt-grub) to dump out the grub content of the guest image (if linux)!! :-) :-) :-) It's actually pretty simple to script this. See attached (requires a grub1 guest). Rich. -- Richard Jones,

Re: [Libguestfs] libguestfs question - multiple partitions in the guest

2012-08-01 Thread Richard W.M. Jones
On Wed, Aug 01, 2012 at 04:02:27PM -0500, Shawn Kennedy wrote: -Original Message- From: libguestfs-boun...@redhat.com [mailto:libguestfs-boun...@redhat.com] On Behalf Of Shawn Kennedy From: Richard W.M. Jones [mailto:rjo...@redhat.com] (2) You could try doing what virt-v2v

Re: [Libguestfs] libguestfs question - multiple partitions in the guest

2012-08-01 Thread Shawn Kennedy
-Original Message- From: Richard W.M. Jones [mailto:rjo...@redhat.com] On Wed, Aug 01, 2012 at 04:02:27PM -0500, Shawn Kennedy wrote: -Original Message- From: libguestfs-boun...@redhat.com [mailto:libguestfs-boun...@redhat.com] On Behalf Of Shawn Kennedy From:

Re: [Libguestfs] libguestfs question - multiple partitions in the guest

2012-08-01 Thread Shawn Kennedy
-Original Message- From: Richard W.M. Jones [mailto:rjo...@redhat.com] Sent: Wednesday, August 01, 2012 4:22 PM To: Shawn Kennedy Cc: libguestfs@redhat.com; 'Smudde, Mark Alan (Mark)'; 'Tockstein, James E (Jim)' Subject: Re: [Libguestfs] libguestfs question - multiple partitions in

Re: [Libguestfs] libguestfs question - multiple partitions in the guest

2012-08-01 Thread Richard W.M. Jones
On Wed, Aug 01, 2012 at 05:02:28PM -0500, Shawn Kennedy wrote: -Original Message- From: Richard W.M. Jones [mailto:rjo...@redhat.com] Sent: Wednesday, August 01, 2012 4:22 PM To: Shawn Kennedy Cc: libguestfs@redhat.com; 'Smudde, Mark Alan (Mark)'; 'Tockstein, James E (Jim)'

Re: [Libguestfs] libguestfs question - multiple partitions in the guest

2012-08-01 Thread Shawn Kennedy
-Original Message- From: Richard W.M. Jones [mailto:rjo...@redhat.com] Sent: Wednesday, August 01, 2012 5:09 PM To: Shawn Kennedy Cc: libguestfs@redhat.com; 'Smudde, Mark Alan (Mark)'; 'Tockstein, James E (Jim)' Subject: Re: [Libguestfs] libguestfs question - multiple partitions in