diff --git a/fs/dircache_test.go b/fs/dircache_test.go index 3d3d999e0..40bfdad44 100644 --- a/fs/dircache_test.go +++ b/fs/dircache_test.go @@ -64,7 +64,11 @@ func TestDirCacheFlag(t *testing.T) { root := &dirCacheTestNode{} opts := Options{} opts.DisableReadDirPlus = true - mnt, _ := testMount(t, root, &opts) + mnt, server := testMount(t, root, &opts) + + if !server.KernelSettings().SupportsVersion(7, 28) { + t.Skip("need v7.28 for directory caching") + } s, errno := NewLoopbackDirStream(mnt) if errno != 0 {