1#!/bin/sh 2# SPDX-License-Identifier: GPL-2.0-or-later 3# Copyright (c) 2023 Petr Vorel <[email protected]> 4# Test for broken NFS cache invalidation for directories. 5# Kernel patch broke cache invalidation, which caused the second 'ls' 6# not shown '2'. 7# https://lore.kernel.org/linux-nfs/[email protected]/ 8# Based on reproducer from Neil Brown <[email protected]> 9 10TST_TESTFUNC="do_test" 11 12do_test() 13{ 14 tst_res TINFO "testing NFS cache invalidation for directories" 15 16 touch 1 17 EXPECT_PASS 'ls | grep 1' 18 touch 2 19 EXPECT_PASS 'ls | grep 2' 20} 21 22. nfs_lib.sh 23tst_run 24