2 # move a directory containing hard-linked files and
3 # make sure the links are preserved
11 if test "$VERBOSE" = yes; then
18 if test -z "$other_partition_tmpdir"; then
25 $MKDIR $dir || framework_failure
=1
26 > $dir/a || framework_failure
=1
27 $LN $dir/a
$dir/b || framework_failure
=1
29 if test $framework_failure = 1; then
30 echo 'failure in testing framework'
34 # Make sure we get English translations.
42 $MV $dir $other_partition_tmpdir || fail
=1
44 # Display inode numbers, one per line.
45 $LS -1i $other_partition_tmpdir/$dir > out || fail
=1
47 # Make sure the inode numbers are the same.
48 a
=`sed -n 's/ a$//p' out`
49 b
=`sed -n 's/ b$//p' out`
50 test "$a" = "$b" || fail
=1
52 $RM -fr out
$dir $other_partition_tmpdir