#! /bin/bash
# FSQA Test No. 038
#
-# Test constant d_ino numbers
+# Test consistent d_ino numbers for samefs setup.
#
#-----------------------------------------------------------------------
#
[[ $current_d == ". d" ]] || \
echo "Before dir becomes impure: Invalid d_ino reported for ."
-chown -h 100 $SCRATCH_MNT/test_file
-test_file_st_ino=$(stat -c '%i' $SCRATCH_MNT/test_file)
-
mv $SCRATCH_MNT/test_file $impure_dir
+test_file_st_ino=$(stat -c '%i' $impure_dir/test_file)
impure=$($GETFATTR_PROG --absolute-names --only-values -n 'trusted.overlay.impure' \
$upperdir/test_dir/impure_dir)
[[ $parent_d == ".. d" ]] || \
echo "Pure lower in dir which has another lower layer: Invalid d_ino reported for .."
-$UMOUNT_PROG $SCRATCH_MNT
+_overlay_scratch_unmount
echo "Silence is golden"
status=0