public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] xfstests: setup and run non-generic mkfs for btrfs
@ 2011-08-16 16:50 David Sterba
  2011-08-25  5:13 ` Christoph Hellwig
  0 siblings, 1 reply; 2+ messages in thread
From: David Sterba @ 2011-08-16 16:50 UTC (permalink / raw)
  To: xfs; +Cc: David Sterba

Signed-off-by: David Sterba <dsterba@suse.cz>
---
 common        |    3 +++
 common.config |    1 +
 common.rc     |    5 ++++-
 3 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/common b/common
index 817c003..0723224 100644
--- a/common
+++ b/common
@@ -306,6 +306,9 @@ case "$FSTYP" in
     udf)
 	 [ "$MKFS_UDF_PROG" = "" ] && _fatal "mkfs_udf/mkudffs not found"
 	 ;;
+    btrfs)
+	 [ "$MKFS_BTRFS_PROG" = "" ] && _fatal "mkfs.btrfs not found"
+	 ;;
     nfs)
 	 ;;
 esac
diff --git a/common.config b/common.config
index 3642139..e94624e 100644
--- a/common.config
+++ b/common.config
@@ -184,6 +184,7 @@ case "$HOSTOS" in
     Linux)
         export MKFS_XFS_PROG="`set_prog_path mkfs.xfs`"
         export MKFS_UDF_PROG="`set_prog_path mkudffs`"
+        export MKFS_BTRFS_PROG="`set_prog_path mkfs.btrfs`"
         export XFS_FSR_PROG="`set_prog_path xfs_fsr`"
         export MKFS_NFS_PROG="false"
         ;;
diff --git a/common.rc b/common.rc
index 2cbcb73..35f782b 100644
--- a/common.rc
+++ b/common.rc
@@ -310,6 +310,9 @@ _scratch_mkfs()
     udf)
         $MKFS_UDF_PROG $MKFS_OPTIONS $* $SCRATCH_DEV > /dev/null
 	;;
+    btrfs)
+        $MKFS_BTRFS_PROG $MKFS_OPTIONS $* $SCRATCH_DEV > /dev/null
+	;;
     *)
 	/sbin/mkfs -t $FSTYP -- $MKFS_OPTIONS $* $SCRATCH_DEV
 	;;
@@ -333,7 +336,7 @@ _scratch_mkfs_sized()
 	/sbin/mkfs.$FSTYP $MKFS_OPTIONS -b $blocksize $SCRATCH_DEV $blocks
 	;;
     btrfs)
-	/sbin/mkfs.$FSTYP $MKFS_OPTIONS $SCRATCH_DEV -b $fssize
+	$MKFS_BTRFS_PROG $MKFS_OPTIONS -b $fssize $SCRATCH_DEV
 	;;
     *)
 	_notrun "Filesystem $FSTYP not supported in _scratch_mkfs_sized"
-- 
1.7.6.233.gd79bc

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] xfstests: setup and run non-generic mkfs for btrfs
  2011-08-16 16:50 [PATCH] xfstests: setup and run non-generic mkfs for btrfs David Sterba
@ 2011-08-25  5:13 ` Christoph Hellwig
  0 siblings, 0 replies; 2+ messages in thread
From: Christoph Hellwig @ 2011-08-25  5:13 UTC (permalink / raw)
  To: David Sterba; +Cc: xfs

Thanks, applied.

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-08-25  5:13 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-16 16:50 [PATCH] xfstests: setup and run non-generic mkfs for btrfs David Sterba
2011-08-25  5:13 ` Christoph Hellwig

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox