Whamcloud - gitweb
tests: don't use "debugfs -f /dev/stdin"
authorTheodore Ts'o <tytso@mit.edu>
Thu, 16 Feb 2017 16:15:34 +0000 (11:15 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Thu, 16 Feb 2017 16:18:46 +0000 (11:18 -0500)
Don't use "debugfs -f /dev/stdin" for portability reasons --- not all
systems have /dev/stdin.  Simply dropping "-f /dev/stdin" works just
fine.

Reported-by: Rical Jasan <ricaljasan@pacific.net>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
tests/f_pre_1970_date_encoding/script
tests/t_quota_1on/script

index 06ff98a..952e550 100644 (file)
@@ -18,7 +18,7 @@ create_file_with_xtime_and_extra() {
                        echo "set_inode_field $name $xtime @$time"
                        echo "set_inode_field $name ${xtime}_extra $extra"
                done
-       } | $DEBUGFS -w -f /dev/stdin $TMPFILE >> $OUT 2>&1
+       } | $DEBUGFS -w $TMPFILE >> $OUT 2>&1
 }
 
 get_file_xtime_and_extra() {
index ed17f33..3704d7a 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 uid 500
        set_inode_field file1 gid 500