From 3f7dd7595c0be29b29237c5dcecff725ad45f580 Mon Sep 17 00:00:00 2001 From: Han-Wen Nienhuys Date: Fri, 27 Sep 2024 15:44:21 +0200 Subject: [PATCH] fs: require 7.28 for FOPEN_DIR_CACHE Change-Id: Iec3345756b6fdbca7e55087952a21f0f1ed1addb --- fs/dircache_test.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/fs/dircache_test.go b/fs/dircache_test.go index 3d3d999e..40bfdad4 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 {