[[ -n "$($LCTL list_param llite.*.inode_cache 2>/dev/null)" ]] ||
skip "$d inode cache not supported"
+ [[ -n "$(num_objects)" ]] ||
+ skip "can't determine number of cached inodes"
+
$LCTL set_param llite.*.inode_cache=0
stack_trap "$LCTL set_param llite.*.inode_cache=1"
local before
local after
+ echo "before lru: $(num_objects)"
cancel_lru_locks mdc
test_mkdir $DIR/$tdir || error "mkdir $tdir"
+ echo "before create: $(num_objects)"
createmany -m $DIR/$tdir/f $count
createmany -d $DIR/$tdir/d $count
+ echo "before ls: $(num_objects)"
ls -l $DIR/$tdir > /dev/null
+ echo "after ls: $(num_objects)"
before=$(num_objects)
cancel_lru_locks mdc