All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Reiser4 initial implementation
@ 2014-12-15 22:19 Dushan Tcholich
  2014-12-15 21:06 ` Dave Chinner
  0 siblings, 1 reply; 5+ messages in thread
From: Dushan Tcholich @ 2014-12-15 22:19 UTC (permalink / raw)
  To: fstests


This is initial xfstests implementation for Reiser4 filesystem.

Signed-off-by: Dushan Tcholich <dusanc@gmail.com>

--- xfstests.orig/common/rc	2014-12-14 15:17:59.000000000 +0100
+++ xfstests/common/rc	2014-12-15 19:40:36.000000000 +0100
@@ -622,7 +622,7 @@
     xfs)
 	def_blksz=`echo $MKFS_OPTIONS|sed -rn 's/.*-b ?size= ?+([0-9]+).*/\1/p'`
 	;;
-    ext2|ext3|ext4|ext4dev|udf|btrfs)
+    ext2|ext3|ext4|ext4dev|udf|btrfs|reiser4)
 	def_blksz=`echo $MKFS_OPTIONS| sed -rn 's/.*-b ?+([0-9]+).*/\1/p'`
 	;;
     esac
@@ -640,6 +640,7 @@
     fi
 
     blocks=`expr $fssize / $blocksize`
+    fssizeK=`expr $fssize / 1024`K
 
     if [ "$HOSTOS" == "Linux" ]; then
 	devsize=`blockdev --getsize64 $SCRATCH_DEV`
@@ -665,6 +666,9 @@
     btrfs)
 	$MKFS_BTRFS_PROG $MKFS_OPTIONS -b $fssize $SCRATCH_DEV
 	;;
+    reiser4)
+        ${MKFS_PROG}.$FSTYP $MKFS_OPTIONS -y -b $blocksize $SCRATCH_DEV $fssizeK 
+        ;;
     *)
 	_notrun "Filesystem $FSTYP not supported in _scratch_mkfs_sized"
 	;;

--- xfstests.orig/common/config	2014-12-14 15:17:59.000000000 +0100
+++ xfstests/common/config	2014-12-12 13:27:40.000000000 +0100
@@ -258,6 +256,9 @@
 		# acls & xattrs aren't turned on by default on reiserfs
 		export MOUNT_OPTIONS="-o acl,user_xattr $REISERFS_MOUNT_OPTIONS"
 		;;
+	reiser4)
+		export MOUNT_OPTIONS=$REISER4_MOUNT_OPTIONS
+		;;
 	gfs2)
 		# acls aren't turned on by default on gfs2
 		export MOUNT_OPTIONS="-o acl $GFS2_MOUNT_OPTIONS"
@@ -302,6 +303,9 @@
 	reiserfs)
 		export MKFS_OPTIONS="$REISERFS_MKFS_OPTIONS -q"
 		;;
+	reiser4)
+                export MKFS_OPTIONS=$REISER4_MKFS_OPTIONS
+                ;;
 	gfs2)
 		export MKFS_OPTIONS="$GFS2_MKFS_OPTIONS -O -p lock_nolock"
 		;;
@@ -322,6 +326,9 @@
 	reiserfs)
 		export FSCK_OPTIONS="--yes"
 		;;
+	reiser4)
+                export FSCK_OPTIONS="--yes"
+                ;;
 	*)
 		export FSCK_OPTIONS="-n"
 		;;

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

end of thread, other threads:[~2014-12-15 23:30 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-15 22:19 [PATCH] Reiser4 initial implementation Dushan Tcholich
2014-12-15 21:06 ` Dave Chinner
2014-12-15 21:39   ` Eric Sandeen
2014-12-15 23:18     ` Dave Chinner
2014-12-15 23:30       ` Dušan Čolić

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.