Whamcloud - gitweb
tests: don't use "debugfs -f /dev/stdin"
authorIngo Brückl <ib@wupperonline.de>
Sat, 31 Mar 2018 20:59:48 +0000 (16:59 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 31 Mar 2018 20:59:48 +0000 (16:59 -0400)
Don't use "debugfs -f /dev/stdin" for portability reasons --- not all
systems have /dev/stdin. Simply dropping "-f /dev/stdin" works just
fine.

Signed-off-by: Ingo Brückl <ib@wupperonline.de>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
tests/f_large_dir/script
tests/t_project_1on/script
tests/t_project_3on/script

index 0b5fdff..605706c 100644 (file)
@@ -32,7 +32,7 @@ $MKE2FS -b 1024 -O large_dir,uninit_bg,dir_nlink -F $TMPFILE 460800 \
            printf "ln foofile %0255X\n" $i
            i=$(($i + 1))
        done
-} | $DEBUGFS -w -f /dev/stdin $TMPFILE > /dev/null 2>&1
+} | $DEBUGFS -w $TMPFILE > /dev/null 2>&1
 
 $E2FSCK -yfD $TMPFILE > $OUT.new 2>&1
 status=$?
index 9232188..606963f 100644 (file)
@@ -14,7 +14,7 @@ if [ "$status" != 0 ] ; then
 fi
 
 dd if=/dev/zero of=$TMPFILE.2 bs=1048576 count=1 >> $test_name.log 2>&1
-cat <<- EOF | $DEBUGFS -w -f /dev/stdin $TMPFILE >> $test_name.log 2>&1
+cat <<- EOF | $DEBUGFS -w $TMPFILE >> $test_name.log 2>&1
        write $TMPFILE.2 file1
        set_inode_field file1 projid 500
 EOF
index 1143ba4..5eaaa15 100644 (file)
@@ -14,7 +14,7 @@ if [ "$status" != 0 ] ; then
 fi
 
 dd if=/dev/zero of=$TMPFILE.2 bs=1048576 count=1 >> $test_name.log 2>&1
-cat <<- EOF | $DEBUGFS -w -f /dev/stdin $TMPFILE >> $test_name.log 2>&1
+cat <<- EOF | $DEBUGFS -w $TMPFILE >> $test_name.log 2>&1
        write $TMPFILE.2 file1
        set_inode_field file1 projid 500
 EOF