OSDN Git Service

Fix f_resize_inode test to deal with the renaming of the debugfs command
authorTheodore Ts'o <tytso@mit.edu>
Sat, 8 Jan 2005 03:46:21 +0000 (22:46 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 8 Jan 2005 03:46:21 +0000 (22:46 -0500)
set_inode to set_inode_field.

tests/f_resize_inode/expect
tests/f_resize_inode/script

index 4b607c6..11d41a6 100644 (file)
@@ -25,7 +25,7 @@ test_filesys: 11/4096 files (0.0% non-contiguous), 2107/16384 blocks
 Exit status is 0
 -----------------------------------------------
  
-debugfs -R ''set_inode <7> block[2] 42'' -w ./test.img
+debugfs -R ''set_inode_field <7> block[2] 42'' -w ./test.img
 Exit status is 0
 Resize inode not valid.  Recreate? yes
 
@@ -81,7 +81,7 @@ test_filesys: 11/4096 files (0.0% non-contiguous), 2107/16384 blocks
 Exit status is 0
 -----------------------------------------------
  
-debugfs -R ''set_inode <7> bmap[524] 57'' -w ./test.img
+debugfs -R ''set_inode_field <7> bmap[524] 57'' -w ./test.img
 Exit status is 0
 Resize inode not valid.  Recreate? yes
 
index 5ad911f..3d95c7b 100644 (file)
@@ -26,8 +26,8 @@ rm -f $OUT.new
 echo ----------------------------------------------- >> $OUT
 
 echo " " >> $OUT
-echo "debugfs -R ''set_inode <7> block[2] 42'' -w $TMPFILE" > $OUT.new
-$DEBUGFS -R "set_inode <7> block[2] 42" -w $TMPFILE >> $OUT.new 2>&1
+echo "debugfs -R ''set_inode_field <7> block[2] 42'' -w $TMPFILE" > $OUT.new
+$DEBUGFS -R "set_inode_field <7> block[2] 42" -w $TMPFILE >> $OUT.new 2>&1
 status=$?
 echo Exit status is $status >> $OUT.new
 sed -e '2d' $OUT.new >> $OUT
@@ -68,8 +68,8 @@ rm -f $OUT.new
 echo ----------------------------------------------- >> $OUT
 
 echo " " >> $OUT
-echo "debugfs -R ''set_inode <7> bmap[524] 57'' -w $TMPFILE" > $OUT.new
-$DEBUGFS -R "set_inode <7> bmap[524] 57" -w $TMPFILE >> $OUT.new 2>&1
+echo "debugfs -R ''set_inode_field <7> bmap[524] 57'' -w $TMPFILE" > $OUT.new
+$DEBUGFS -R "set_inode_field <7> bmap[524] 57" -w $TMPFILE >> $OUT.new 2>&1
 status=$?
 echo Exit status is $status >> $OUT.new
 sed -e '2d' $OUT.new >> $OUT