rm -f $LOWER_DIR1/f1 || exit $?
sync
sleep 5
- test -f $MOUNTPOINT/f1 && exit $?
- echo -n "[rm] "
+ case `uname -r` in
+ 2.6.3[89]* | 3.* )
+ # 2.6.38+ no longer d-revalidates when lower inode is gone, so I
+ # cannot detect changes below
+ echo -n "[rm-SKIP] "
+ ;;
+ * )
+ test -f $MOUNTPOINT/f1 && exit $?
+ echo -n "[rm] "
+ ;;
+ esac
}
function test_rmdir {
rmdir $LOWER_DIR1/d1 || exit $?
sync
sleep 5
- test -d $MOUNTPOINT/d1 && exit $?
- echo -n "[rmdir] "
+ case `uname -r` in
+ 2.6.3[89]* | 3.* )
+ # 2.6.38 no longer d-revalidates when lower inode is gone, so I
+ # cannot detect changes below
+ echo -n "[rmdir-SKIP] "
+ ;;
+ * )
+ test -d $MOUNTPOINT/d1 && exit $?
+ echo -n "[rmdir] "
+ ;;
+ esac
}
function test_append {