[PATCH] mkfs: enable to make xfs filesystems when the device already has a filesystem
Just add the -f option to mkfs.xfs to make sure we can make a xfs filesystem when the device already has a filesystem on it. Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com> --- daemon/mkfs.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/daemon/mkfs.c b/daemon/mkfs.c index f3975dc..a2c2366 100644 --- a/daemon/mkfs.c +++ b/daemon/mkfs.c @@ -85,6 +85,9 @@ do_mkfs_opts (const char *fstype, const char *device, int blocksize, if (STREQ (fstype, "jfs")) ADD_ARG (argv, i, "-f"); + if (STREQ (fstype, "xfs")) + ADD_ARG (argv, i, "-f"); + /* For GFS, GFS2, assume a single node. */ if (STREQ (fstype, "gfs") || STREQ (fstype, "gfs2")) { ADD_ARG (argv, i, "-p"); -- 1.7.8.rc3
On Fri, Dec 02, 2011 at 09:47:51PM +0800, Wanlong Gao wrote:
Just add the -f option to mkfs.xfs to make sure we can make a xfs filesystem when the device already has a filesystem on it.
Thanks, I have added this patch. Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-df lists disk usage of guests without needing to install any software inside the virtual machine. Supports Linux and Windows. http://et.redhat.com/~rjones/virt-df/
Hi Rich: Is there anything wrong with the libguestfs@redhat.com mail list? I have not received the mail from this mail list now. Thanks -Wanlong Gao
On Fri, Dec 02, 2011 at 09:47:51PM +0800, Wanlong Gao wrote:
Just add the -f option to mkfs.xfs to make sure we can make a xfs filesystem when the device already has a filesystem on it.
Thanks, I have added this patch.
Rich.
On Fri, Dec 02, 2011 at 10:03:53PM +0800, Wanlong Gao wrote:
Hi Rich:
Is there anything wrong with the libguestfs@redhat.com mail list? I have not received the mail from this mail list now.
Could be just slow? I can see your posting, both in my inbox and in the archives: https://www.redhat.com/archives/libguestfs/2011-December/msg00012.html Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into Xen guests. http://et.redhat.com/~rjones/virt-p2v
On 12/02/2011 10:07 PM, Richard W.M. Jones wrote:
On Fri, Dec 02, 2011 at 10:03:53PM +0800, Wanlong Gao wrote:
Hi Rich:
Is there anything wrong with the libguestfs@redhat.com mail list? I have not received the mail from this mail list now.
Could be just slow?
I can see your posting, both in my inbox and in the archives: https://www.redhat.com/archives/libguestfs/2011-December/msg00012.html
Rich.
I see what's wrong. It Dec now..... there's something wrong with my brain... Thanks -Wanlong Gao
participants (2)
-
Richard W.M. Jones -
Wanlong Gao