[PATCH 4/8] generic/740: skip jffs2 as foreign fs earlier

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Commit a633d252e3c4 ("shared/032: add options for jffs2") added a
check to skip checking the overwrite of jffs2, but only after
adding specific mkfs options for it and zeroing part of the device.

Switch to skipping it earlier in a more obvious place.

Signed-off-by: Christoph Hellwig <hch@xxxxxx>
---
 tests/generic/740 | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/tests/generic/740 b/tests/generic/740
index 6a97ac69a..bac927227 100755
--- a/tests/generic/740
+++ b/tests/generic/740
@@ -46,8 +46,8 @@ do
 		preargs="-p lock_nolock -j 1"
 		;;
 	jffs2)
-		# jffs2 mkfs requires '-r $directory' and '-o $image'
-		preargs="-r /proc/fs -o"
+		# mkfs.jffs2 doesn't work like a normal mkfs and just fails
+		continue;
 		;;
 	jfs)
 		preop="echo Y |"
@@ -79,8 +79,6 @@ do
 
 	if [ $? -eq 0 ] ; then
 		# next, ensure we don't overwrite it
-		# jffs2 mkfs doesn't check overwrite case
-		[ $fs = jffs2 ] && continue
 
 		echo "=== Attempting $FSTYP overwrite of $fs..." >>$seqres.full
 		${MKFS_PROG} -t $FSTYP $SCRATCH_DEV >>$seqres.full 2>&1
-- 
2.43.0





[Index of Archives]     [Reiser Filesystem Development]     [Ceph FS]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Linux FS]     [Yosemite National Park]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]     [Linux Media]

  Powered by Linux