Skip to content

Commit

Permalink
fs: require 7.28 for FOPEN_DIR_CACHE
Browse files Browse the repository at this point in the history
Change-Id: Iec3345756b6fdbca7e55087952a21f0f1ed1addb
  • Loading branch information
hanwen committed Sep 27, 2024
1 parent cb0826b commit 3f7dd75
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion fs/dircache_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 3f7dd75

Please sign in to comment.