blob: 9113e9c87fff162e75d2d6d760460be0758be1e8 [file] [log] [blame]
if test -x $DEBUGFS_EXE; then
SKIP_GUNZIP="true"
TEST_DATA="$test_name.tmp"
dd if=$TEST_BITS of=$TEST_DATA bs=4k count=2 seek=1> /dev/null 2>&1
touch $TMPFILE
mke2fs -Fq -t ext4 -O bigalloc -C 16384 $TMPFILE 1M > /dev/null 2>&1
debugfs -w $TMPFILE << EOF > /dev/null 2>&1
write $TEST_DATA testfile
set_inode_field testfile i_mode 0120000
quit
EOF
. $cmd_dir/run_e2fsck
rm -f $TEST_DATA
unset E2FSCK_TIME TEST_DATA
else #if test -x $DEBUGFS_EXE; then
echo "$test_name: $test_description: skipped"
fi