diff mbox series

fstests: remove reiserfs support

Message ID 20250219221743.20161-1-dsterba@suse.com (mailing list archive)
State New
Headers show
Series fstests: remove reiserfs support | expand

Commit Message

David Sterba Feb. 19, 2025, 10:17 p.m. UTC
The linux kernel removed Reiserfs support in 6.13 so remove it from the
tests as well.

Signed-off-by: David Sterba <dsterba@suse.com>
---

Arguably reiser4 support could be removed as well as there's no recent
upstream activity.

 common/config     | 7 -------
 common/quota      | 4 ++--
 common/rc         | 5 +----
 tests/generic/740 | 4 ----
 4 files changed, 3 insertions(+), 17 deletions(-)

Comments

Darrick J. Wong Feb. 19, 2025, 10:39 p.m. UTC | #1
On Wed, Feb 19, 2025 at 11:17:43PM +0100, David Sterba wrote:
> The linux kernel removed Reiserfs support in 6.13 so remove it from the
> tests as well.
> 
> Signed-off-by: David Sterba <dsterba@suse.com>

Buhbye!
Reviewed-by: "Darrick J. Wong" <djwong@kernel.org>

--D

> ---
> 
> Arguably reiser4 support could be removed as well as there's no recent
> upstream activity.
> 
>  common/config     | 7 -------
>  common/quota      | 4 ++--
>  common/rc         | 5 +----
>  tests/generic/740 | 4 ----
>  4 files changed, 3 insertions(+), 17 deletions(-)
> 
> diff --git a/common/config b/common/config
> index 77f3fc153eb731..a9a1ce6c3655cf 100644
> --- a/common/config
> +++ b/common/config
> @@ -384,10 +384,6 @@ _common_mount_opts()
>  	f2fs)
>  		echo "-o acl,user_xattr $F2FS_MOUNT_OPTIONS"
>  		;;
> -	reiserfs)
> -		# acls & xattrs aren't turned on by default on reiserfs
> -		echo "-o acl,user_xattr $REISERFS_MOUNT_OPTIONS"
> -		;;
>         reiser4)
>  		# acls & xattrs aren't supported by reiser4
>  		echo $REISER4_MOUNT_OPTIONS
> @@ -441,9 +437,6 @@ _mkfs_opts()
>  	ceph)
>  		export MKFS_OPTIONS=$CEPHFS_MKFS_OPTIONS
>  		;;
> -	reiserfs)
> -		export MKFS_OPTIONS="$REISERFS_MKFS_OPTIONS -q"
> -		;;
>         reiser4)
>  		export MKFS_OPTIONS=$REISER4_MKFS_OPTIONS
>  		;;
> diff --git a/common/quota b/common/quota
> index 8688116c6547a9..9c3d1bb4ace4bb 100644
> --- a/common/quota
> +++ b/common/quota
> @@ -12,7 +12,7 @@ _require_quota()
>      [ -n "$QUOTA_PROG" ] || _notrun "Quota user tools not installed"
>  
>      case $FSTYP in
> -    ext2|ext3|ext4|f2fs|reiserfs)
> +    ext2|ext3|ext4|f2fs)
>  	if [ ! -d /proc/sys/fs/quota ]; then
>  	    _notrun "Installed kernel does not support quotas"
>  	fi
> @@ -347,7 +347,7 @@ _check_quota_usage()
>  
>  	VFS_QUOTA=0
>  	case $FSTYP in
> -	ext2|ext3|ext4|f2fs|reiserfs|gfs2|bcachefs)
> +	ext2|ext3|ext4|f2fs|gfs2|bcachefs)
>  		VFS_QUOTA=1
>  		quotaon -f -u -g $SCRATCH_MNT 2>/dev/null
>  		;;
> diff --git a/common/rc b/common/rc
> index 6840bb1dfa1001..9d16df5fc0d5ae 100644
> --- a/common/rc
> +++ b/common/rc
> @@ -1163,7 +1163,7 @@ _try_scratch_mkfs_sized()
>  	btrfs)
>  		def_blksz=`echo $MKFS_OPTIONS | sed -rn 's/.*-s ?+([0-9]+).*/\1/p'`
>  		;;
> -	ext2|ext3|ext4|reiser4|ocfs2|reiserfs)
> +	ext2|ext3|ext4|reiser4|ocfs2)
>  		def_blksz=`echo $MKFS_OPTIONS | sed -rn 's/.*-b ?+([0-9]+).*/\1/p'`
>  		;;
>  	udf)
> @@ -1267,9 +1267,6 @@ _try_scratch_mkfs_sized()
>  	jfs)
>  		${MKFS_PROG} -t $FSTYP $MKFS_OPTIONS "$@" $SCRATCH_DEV $blocks
>  		;;
> -	reiserfs)
> -		${MKFS_PROG} -t $FSTYP $MKFS_OPTIONS -b $blocksize "$@" $SCRATCH_DEV $blocks
> -		;;
>  	reiser4)
>  		# mkfs.resier4 requires size in KB as input for creating filesystem
>  		$MKFS_REISER4_PROG $MKFS_OPTIONS -y -b $blocksize "$@" $SCRATCH_DEV \
> diff --git a/tests/generic/740 b/tests/generic/740
> index 10817521cc9342..c167dbef2ff68a 100755
> --- a/tests/generic/740
> +++ b/tests/generic/740
> @@ -63,10 +63,6 @@ do
>  		# "quick" format that doesn't zero the entire device
>  		postargs="--quick"
>  		;;
> -	reiserfs|reiser4)
> -		preop="echo y |"
> -		preargs="-f"
> -		;;
>  	*)
>  		;;
>  	esac
> -- 
> 2.47.1
> 
>
Zorro Lang Feb. 20, 2025, 8:22 p.m. UTC | #2
On Wed, Feb 19, 2025 at 11:17:43PM +0100, David Sterba wrote:
> The linux kernel removed Reiserfs support in 6.13 so remove it from the
> tests as well.
> 
> Signed-off-by: David Sterba <dsterba@suse.com>
> ---
> 
> Arguably reiser4 support could be removed as well as there's no recent
> upstream activity.

Thanks for doing this :) But even with this patch, I still can find more
"reiser*" related things as below. How about removing them all?

zorro@zlang-laptop:~/git/upstream/xfs/xfstests-dev$ grep -rsni reiser .
./common/config:330:export MKFS_REISER4_PROG=$(type -P mkfs.reiser4)
./common/config:390:       reiser4)
./common/config:391:            # acls & xattrs aren't supported by reiser4
./common/config:392:            echo $REISER4_MOUNT_OPTIONS
./common/config:443:       reiser4)
./common/config:444:            export MKFS_OPTIONS=$REISER4_MKFS_OPTIONS
./common/config:472:    reiser*)
./common/config:540:    reiser4)
./common/config:541:            [ "$MKFS_REISER4_PROG" = "" ] && _fatal "mkfs.reiser4 not found"
./common/rc:1227:       ext2|ext3|ext4|reiser4|ocfs2)
./common/rc:1331:       reiser4)
./common/rc:1333:               $MKFS_REISER4_PROG $MKFS_OPTIONS -y -b $blocksize "$@" $SCRATCH_DEV \

> 
>  common/config     | 7 -------
>  common/quota      | 4 ++--
>  common/rc         | 5 +----
>  tests/generic/740 | 4 ----
>  4 files changed, 3 insertions(+), 17 deletions(-)
> 
> diff --git a/common/config b/common/config
> index 77f3fc153eb731..a9a1ce6c3655cf 100644
> --- a/common/config
> +++ b/common/config
> @@ -384,10 +384,6 @@ _common_mount_opts()
>  	f2fs)
>  		echo "-o acl,user_xattr $F2FS_MOUNT_OPTIONS"
>  		;;
> -	reiserfs)
> -		# acls & xattrs aren't turned on by default on reiserfs
> -		echo "-o acl,user_xattr $REISERFS_MOUNT_OPTIONS"
> -		;;
>         reiser4)
>  		# acls & xattrs aren't supported by reiser4
>  		echo $REISER4_MOUNT_OPTIONS
> @@ -441,9 +437,6 @@ _mkfs_opts()
>  	ceph)
>  		export MKFS_OPTIONS=$CEPHFS_MKFS_OPTIONS
>  		;;
> -	reiserfs)
> -		export MKFS_OPTIONS="$REISERFS_MKFS_OPTIONS -q"
> -		;;
>         reiser4)
>  		export MKFS_OPTIONS=$REISER4_MKFS_OPTIONS
>  		;;
> diff --git a/common/quota b/common/quota
> index 8688116c6547a9..9c3d1bb4ace4bb 100644
> --- a/common/quota
> +++ b/common/quota
> @@ -12,7 +12,7 @@ _require_quota()
>      [ -n "$QUOTA_PROG" ] || _notrun "Quota user tools not installed"
>  
>      case $FSTYP in
> -    ext2|ext3|ext4|f2fs|reiserfs)
> +    ext2|ext3|ext4|f2fs)
>  	if [ ! -d /proc/sys/fs/quota ]; then
>  	    _notrun "Installed kernel does not support quotas"
>  	fi
> @@ -347,7 +347,7 @@ _check_quota_usage()
>  
>  	VFS_QUOTA=0
>  	case $FSTYP in
> -	ext2|ext3|ext4|f2fs|reiserfs|gfs2|bcachefs)
> +	ext2|ext3|ext4|f2fs|gfs2|bcachefs)
>  		VFS_QUOTA=1
>  		quotaon -f -u -g $SCRATCH_MNT 2>/dev/null
>  		;;
> diff --git a/common/rc b/common/rc
> index 6840bb1dfa1001..9d16df5fc0d5ae 100644
> --- a/common/rc
> +++ b/common/rc
> @@ -1163,7 +1163,7 @@ _try_scratch_mkfs_sized()
>  	btrfs)
>  		def_blksz=`echo $MKFS_OPTIONS | sed -rn 's/.*-s ?+([0-9]+).*/\1/p'`
>  		;;
> -	ext2|ext3|ext4|reiser4|ocfs2|reiserfs)
> +	ext2|ext3|ext4|reiser4|ocfs2)
>  		def_blksz=`echo $MKFS_OPTIONS | sed -rn 's/.*-b ?+([0-9]+).*/\1/p'`
>  		;;
>  	udf)
> @@ -1267,9 +1267,6 @@ _try_scratch_mkfs_sized()
>  	jfs)
>  		${MKFS_PROG} -t $FSTYP $MKFS_OPTIONS "$@" $SCRATCH_DEV $blocks
>  		;;
> -	reiserfs)
> -		${MKFS_PROG} -t $FSTYP $MKFS_OPTIONS -b $blocksize "$@" $SCRATCH_DEV $blocks
> -		;;
>  	reiser4)
>  		# mkfs.resier4 requires size in KB as input for creating filesystem
>  		$MKFS_REISER4_PROG $MKFS_OPTIONS -y -b $blocksize "$@" $SCRATCH_DEV \
> diff --git a/tests/generic/740 b/tests/generic/740
> index 10817521cc9342..c167dbef2ff68a 100755
> --- a/tests/generic/740
> +++ b/tests/generic/740
> @@ -63,10 +63,6 @@ do
>  		# "quick" format that doesn't zero the entire device
>  		postargs="--quick"
>  		;;
> -	reiserfs|reiser4)
> -		preop="echo y |"
> -		preargs="-f"
> -		;;
>  	*)
>  		;;
>  	esac
> -- 
> 2.47.1
> 
>
David Sterba Feb. 20, 2025, 8:37 p.m. UTC | #3
On Fri, Feb 21, 2025 at 04:22:38AM +0800, Zorro Lang wrote:
> On Wed, Feb 19, 2025 at 11:17:43PM +0100, David Sterba wrote:
> > The linux kernel removed Reiserfs support in 6.13 so remove it from the
> > tests as well.
> > 
> > Signed-off-by: David Sterba <dsterba@suse.com>
> > ---
> > 
> > Arguably reiser4 support could be removed as well as there's no recent
> > upstream activity.
> 
> Thanks for doing this :) But even with this patch, I still can find more
> "reiser*" related things as below. How about removing them all?
> 
> zorro@zlang-laptop:~/git/upstream/xfs/xfstests-dev$ grep -rsni reiser .
> ./common/config:330:export MKFS_REISER4_PROG=$(type -P mkfs.reiser4)
> ./common/config:390:       reiser4)
> ./common/config:391:            # acls & xattrs aren't supported by reiser4
> ./common/config:392:            echo $REISER4_MOUNT_OPTIONS
> ./common/config:443:       reiser4)
> ./common/config:444:            export MKFS_OPTIONS=$REISER4_MKFS_OPTIONS
> ./common/config:472:    reiser*)
> ./common/config:540:    reiser4)
> ./common/config:541:            [ "$MKFS_REISER4_PROG" = "" ] && _fatal "mkfs.reiser4 not found"
> ./common/rc:1227:       ext2|ext3|ext4|reiser4|ocfs2)
> ./common/rc:1331:       reiser4)
> ./common/rc:1333:               $MKFS_REISER4_PROG $MKFS_OPTIONS -y -b $blocksize "$@" $SCRATCH_DEV \

This is reiser4, the reasoning would be different as it's an out-of-tree
module but still somehow developed so there's a chance somebody is using
it.
Zorro Lang Feb. 21, 2025, 5:19 a.m. UTC | #4
On Thu, Feb 20, 2025 at 09:37:51PM +0100, David Sterba wrote:
> On Fri, Feb 21, 2025 at 04:22:38AM +0800, Zorro Lang wrote:
> > On Wed, Feb 19, 2025 at 11:17:43PM +0100, David Sterba wrote:
> > > The linux kernel removed Reiserfs support in 6.13 so remove it from the
> > > tests as well.
> > > 
> > > Signed-off-by: David Sterba <dsterba@suse.com>
> > > ---
> > > 
> > > Arguably reiser4 support could be removed as well as there's no recent
> > > upstream activity.
> > 
> > Thanks for doing this :) But even with this patch, I still can find more
> > "reiser*" related things as below. How about removing them all?
> > 
> > zorro@zlang-laptop:~/git/upstream/xfs/xfstests-dev$ grep -rsni reiser .
> > ./common/config:330:export MKFS_REISER4_PROG=$(type -P mkfs.reiser4)
> > ./common/config:390:       reiser4)
> > ./common/config:391:            # acls & xattrs aren't supported by reiser4
> > ./common/config:392:            echo $REISER4_MOUNT_OPTIONS
> > ./common/config:443:       reiser4)
> > ./common/config:444:            export MKFS_OPTIONS=$REISER4_MKFS_OPTIONS
> > ./common/config:472:    reiser*)
> > ./common/config:540:    reiser4)
> > ./common/config:541:            [ "$MKFS_REISER4_PROG" = "" ] && _fatal "mkfs.reiser4 not found"
> > ./common/rc:1227:       ext2|ext3|ext4|reiser4|ocfs2)
> > ./common/rc:1331:       reiser4)
> > ./common/rc:1333:               $MKFS_REISER4_PROG $MKFS_OPTIONS -y -b $blocksize "$@" $SCRATCH_DEV \
> 
> This is reiser4, the reasoning would be different as it's an out-of-tree
> module but still somehow developed so there's a chance somebody is using
> it.

Sorry I saw you said "Arguably reiser4 support could be removed as well
as there's no recent  upstream activity.", then removed reiser4 from
generic/740 [1], so I thought you want to remove it too :)

OK, I'm good to keep reiser4 for a while.

Thanks,
Zorro

[1]
 diff --git a/tests/generic/740 b/tests/generic/740
 index 10817521cc9342..c167dbef2ff68a 100755
 --- a/tests/generic/740
 +++ b/tests/generic/740
 @@ -63,10 +63,6 @@ do
               # "quick" format that doesn't zero the entire device
               postargs="--quick"
               ;;
 -     reiserfs|reiser4)
 -             preop="echo y |"
 -             preargs="-f"
 -             ;;



>
David Sterba Feb. 21, 2025, 10:59 a.m. UTC | #5
On Fri, Feb 21, 2025 at 01:19:02PM +0800, Zorro Lang wrote:
> On Thu, Feb 20, 2025 at 09:37:51PM +0100, David Sterba wrote:
> > On Fri, Feb 21, 2025 at 04:22:38AM +0800, Zorro Lang wrote:
> > > On Wed, Feb 19, 2025 at 11:17:43PM +0100, David Sterba wrote:
> > > > The linux kernel removed Reiserfs support in 6.13 so remove it from the
> > > > tests as well.
> > > > 
> > > > Signed-off-by: David Sterba <dsterba@suse.com>
> > > > ---
> > > > 
> > > > Arguably reiser4 support could be removed as well as there's no recent
> > > > upstream activity.
> > > 
> > > Thanks for doing this :) But even with this patch, I still can find more
> > > "reiser*" related things as below. How about removing them all?
> > > 
> > > zorro@zlang-laptop:~/git/upstream/xfs/xfstests-dev$ grep -rsni reiser .
> > > ./common/config:330:export MKFS_REISER4_PROG=$(type -P mkfs.reiser4)
> > > ./common/config:390:       reiser4)
> > > ./common/config:391:            # acls & xattrs aren't supported by reiser4
> > > ./common/config:392:            echo $REISER4_MOUNT_OPTIONS
> > > ./common/config:443:       reiser4)
> > > ./common/config:444:            export MKFS_OPTIONS=$REISER4_MKFS_OPTIONS
> > > ./common/config:472:    reiser*)
> > > ./common/config:540:    reiser4)
> > > ./common/config:541:            [ "$MKFS_REISER4_PROG" = "" ] && _fatal "mkfs.reiser4 not found"
> > > ./common/rc:1227:       ext2|ext3|ext4|reiser4|ocfs2)
> > > ./common/rc:1331:       reiser4)
> > > ./common/rc:1333:               $MKFS_REISER4_PROG $MKFS_OPTIONS -y -b $blocksize "$@" $SCRATCH_DEV \
> > 
> > This is reiser4, the reasoning would be different as it's an out-of-tree
> > module but still somehow developed so there's a chance somebody is using
> > it.
> 
> Sorry I saw you said "Arguably reiser4 support could be removed as well
> as there's no recent  upstream activity.", then removed reiser4 from
> generic/740 [1], so I thought you want to remove it too :)

Oh I see,

>  -     reiserfs|reiser4)
>  -             preop="echo y |"
>  -             preargs="-f"
>  -             ;;

this was not intentional, I mean to remove only the "reiserfs|" part.

This may bring the question what is the policy for filesystem support.
I've seen "case $FSTYP" with widely inconsistent cases of filesystems,
probably the longest list is in common/rc:_require_scratch_nocheck with
9p, virtiofs, afs, pvfs2 or ubifs.  It would be good to document that in
README, I haven't found anything in that regard.
Zorro Lang Feb. 21, 2025, 3:45 p.m. UTC | #6
On Fri, Feb 21, 2025 at 11:59:19AM +0100, David Sterba wrote:
> On Fri, Feb 21, 2025 at 01:19:02PM +0800, Zorro Lang wrote:
> > On Thu, Feb 20, 2025 at 09:37:51PM +0100, David Sterba wrote:
> > > On Fri, Feb 21, 2025 at 04:22:38AM +0800, Zorro Lang wrote:
> > > > On Wed, Feb 19, 2025 at 11:17:43PM +0100, David Sterba wrote:
> > > > > The linux kernel removed Reiserfs support in 6.13 so remove it from the
> > > > > tests as well.
> > > > > 
> > > > > Signed-off-by: David Sterba <dsterba@suse.com>
> > > > > ---
> > > > > 
> > > > > Arguably reiser4 support could be removed as well as there's no recent
> > > > > upstream activity.
> > > > 
> > > > Thanks for doing this :) But even with this patch, I still can find more
> > > > "reiser*" related things as below. How about removing them all?
> > > > 
> > > > zorro@zlang-laptop:~/git/upstream/xfs/xfstests-dev$ grep -rsni reiser .
> > > > ./common/config:330:export MKFS_REISER4_PROG=$(type -P mkfs.reiser4)
> > > > ./common/config:390:       reiser4)
> > > > ./common/config:391:            # acls & xattrs aren't supported by reiser4
> > > > ./common/config:392:            echo $REISER4_MOUNT_OPTIONS
> > > > ./common/config:443:       reiser4)
> > > > ./common/config:444:            export MKFS_OPTIONS=$REISER4_MKFS_OPTIONS
> > > > ./common/config:472:    reiser*)
> > > > ./common/config:540:    reiser4)
> > > > ./common/config:541:            [ "$MKFS_REISER4_PROG" = "" ] && _fatal "mkfs.reiser4 not found"
> > > > ./common/rc:1227:       ext2|ext3|ext4|reiser4|ocfs2)
> > > > ./common/rc:1331:       reiser4)
> > > > ./common/rc:1333:               $MKFS_REISER4_PROG $MKFS_OPTIONS -y -b $blocksize "$@" $SCRATCH_DEV \
> > > 
> > > This is reiser4, the reasoning would be different as it's an out-of-tree
> > > module but still somehow developed so there's a chance somebody is using
> > > it.
> > 
> > Sorry I saw you said "Arguably reiser4 support could be removed as well
> > as there's no recent  upstream activity.", then removed reiser4 from
> > generic/740 [1], so I thought you want to remove it too :)
> 
> Oh I see,
> 
> >  -     reiserfs|reiser4)
> >  -             preop="echo y |"
> >  -             preargs="-f"
> >  -             ;;
> 
> this was not intentional, I mean to remove only the "reiserfs|" part.

No worry, if so I'll help to remove only the "reiserfs|" part when I merge
this patch.

> 
> This may bring the question what is the policy for filesystem support.
> I've seen "case $FSTYP" with widely inconsistent cases of filesystems,
> probably the longest list is in common/rc:_require_scratch_nocheck with
> 9p, virtiofs, afs, pvfs2 or ubifs.  It would be good to document that in
> README, I haven't found anything in that regard.

Good idea, maybe we should have a list about that.

There's not a limitation about what filesystems are supported or not.
Especially the generic test cases, some "not in list" filesystems might
run generic tests too. So we don't exclude any filesystem which wants
to try fstests.

Generally when someone wants to help fstests to support a new filesystem,
there're 3 phases:
1) Check if fstests can mkfs, mount, unmount and fsck on this fs natively.
   If it can't, add the fs to the "case...esac" list, to do special treatment.
2) Run generic test case on the new fs, fix some test failures which are
   not suitable for this fs.
3) Add more test cases for this fs, might need a new tests/$FSTYP directory
   and more common helpers.

Actually some of filesystems which are "supported" by xfstests, just satisfy
the phase#1, or a few phase#2. That depends on how deeply that fs list
would like to use xfstests.

But everything is still changing. For example, we don't support nfs much,
just in phase#1. But as more and more nfs folks start to use xfstests,
it's good to run on nfs now, even reach to part of phase#3. In contrast,
although cifs is in the list, and xfstests can be run on it, but too
many test failures, no one from cifs would like to care about that.

So about the "support list", what's the standard to count in a fs :)

Thanks,
Zorro

>
diff mbox series

Patch

diff --git a/common/config b/common/config
index 77f3fc153eb731..a9a1ce6c3655cf 100644
--- a/common/config
+++ b/common/config
@@ -384,10 +384,6 @@  _common_mount_opts()
 	f2fs)
 		echo "-o acl,user_xattr $F2FS_MOUNT_OPTIONS"
 		;;
-	reiserfs)
-		# acls & xattrs aren't turned on by default on reiserfs
-		echo "-o acl,user_xattr $REISERFS_MOUNT_OPTIONS"
-		;;
        reiser4)
 		# acls & xattrs aren't supported by reiser4
 		echo $REISER4_MOUNT_OPTIONS
@@ -441,9 +437,6 @@  _mkfs_opts()
 	ceph)
 		export MKFS_OPTIONS=$CEPHFS_MKFS_OPTIONS
 		;;
-	reiserfs)
-		export MKFS_OPTIONS="$REISERFS_MKFS_OPTIONS -q"
-		;;
        reiser4)
 		export MKFS_OPTIONS=$REISER4_MKFS_OPTIONS
 		;;
diff --git a/common/quota b/common/quota
index 8688116c6547a9..9c3d1bb4ace4bb 100644
--- a/common/quota
+++ b/common/quota
@@ -12,7 +12,7 @@  _require_quota()
     [ -n "$QUOTA_PROG" ] || _notrun "Quota user tools not installed"
 
     case $FSTYP in
-    ext2|ext3|ext4|f2fs|reiserfs)
+    ext2|ext3|ext4|f2fs)
 	if [ ! -d /proc/sys/fs/quota ]; then
 	    _notrun "Installed kernel does not support quotas"
 	fi
@@ -347,7 +347,7 @@  _check_quota_usage()
 
 	VFS_QUOTA=0
 	case $FSTYP in
-	ext2|ext3|ext4|f2fs|reiserfs|gfs2|bcachefs)
+	ext2|ext3|ext4|f2fs|gfs2|bcachefs)
 		VFS_QUOTA=1
 		quotaon -f -u -g $SCRATCH_MNT 2>/dev/null
 		;;
diff --git a/common/rc b/common/rc
index 6840bb1dfa1001..9d16df5fc0d5ae 100644
--- a/common/rc
+++ b/common/rc
@@ -1163,7 +1163,7 @@  _try_scratch_mkfs_sized()
 	btrfs)
 		def_blksz=`echo $MKFS_OPTIONS | sed -rn 's/.*-s ?+([0-9]+).*/\1/p'`
 		;;
-	ext2|ext3|ext4|reiser4|ocfs2|reiserfs)
+	ext2|ext3|ext4|reiser4|ocfs2)
 		def_blksz=`echo $MKFS_OPTIONS | sed -rn 's/.*-b ?+([0-9]+).*/\1/p'`
 		;;
 	udf)
@@ -1267,9 +1267,6 @@  _try_scratch_mkfs_sized()
 	jfs)
 		${MKFS_PROG} -t $FSTYP $MKFS_OPTIONS "$@" $SCRATCH_DEV $blocks
 		;;
-	reiserfs)
-		${MKFS_PROG} -t $FSTYP $MKFS_OPTIONS -b $blocksize "$@" $SCRATCH_DEV $blocks
-		;;
 	reiser4)
 		# mkfs.resier4 requires size in KB as input for creating filesystem
 		$MKFS_REISER4_PROG $MKFS_OPTIONS -y -b $blocksize "$@" $SCRATCH_DEV \
diff --git a/tests/generic/740 b/tests/generic/740
index 10817521cc9342..c167dbef2ff68a 100755
--- a/tests/generic/740
+++ b/tests/generic/740
@@ -63,10 +63,6 @@  do
 		# "quick" format that doesn't zero the entire device
 		postargs="--quick"
 		;;
-	reiserfs|reiser4)
-		preop="echo y |"
-		preargs="-f"
-		;;
 	*)
 		;;
 	esac