Skip to content

Commit

Permalink
Ask fuse to open unit log files with OpenDirectIO flag
Browse files Browse the repository at this point in the history
  • Loading branch information
awfulcooking committed Jun 29, 2023
1 parent 31401ec commit 9f01b2c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions fs/unit_log_file.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ func NewUnitLogFile(jc *journalcache.JournalCache, unit string) *UnitLogFile {
}
}

func (f *UnitLogFile) Open(ctx context.Context, req *fuse.OpenRequest, resp *fuse.OpenResponse) (fs.Handle, error) {
resp.Flags |= fuse.OpenDirectIO
return f, nil
}

func (f *UnitLogFile) Attr(ctx context.Context, attr *fuse.Attr) error {
attr.Valid = 0

Expand Down

0 comments on commit 9f01b2c

Please sign in to comment.