Skip to content

Commit

Permalink
fs: add FOPEN_KEEP_CACHE if FOPEN_CACHE_DIR is set.
Browse files Browse the repository at this point in the history
Let's see if this fixes CI (running on Linux 6.8.0)

Change-Id: Ib50c92edb6603568055cb0f06fca6600dc1c95cd
  • Loading branch information
hanwen committed Sep 27, 2024
1 parent 3f7dd75 commit 84ab0a7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fs/bridge.go
Original file line number Diff line number Diff line change
Expand Up @@ -1045,6 +1045,9 @@ func (b *rawBridge) OpenDir(cancel <-chan struct{}, input *fuse.OpenIn, out *fus
fh = &dirStreamAsFile{creator: ctor}
}

if fuseFlags&(fuse.FOPEN_CACHE_DIR|fuse.FOPEN_KEEP_CACHE) != 0 {
fuseFlags |= fuse.FOPEN_CACHE_DIR | fuse.FOPEN_KEEP_CACHE
}
b.mu.Lock()
defer b.mu.Unlock()
fe := b.registerFile(n, fh, 0)
Expand Down

0 comments on commit 84ab0a7

Please sign in to comment.