diff options
| author | chrislu <chris.lu@gmail.com> | 2025-08-30 16:07:50 -0700 |
|---|---|---|
| committer | chrislu <chris.lu@gmail.com> | 2025-08-30 16:07:50 -0700 |
| commit | 14a0e51fd17ac668e797c1dd8a1a2cb76d036d6b (patch) | |
| tree | 69d609bf69eea900f17c49143431d91e3a57b2fd | |
| parent | f02c4f816bd67b3a98cb239c5c18b8445da0f9fc (diff) | |
| download | seaweedfs-14a0e51fd17ac668e797c1dd8a1a2cb76d036d6b.tar.xz seaweedfs-14a0e51fd17ac668e797c1dd8a1a2cb76d036d6b.zip | |
fmt
| -rw-r--r-- | weed/mount/weedfs_file_io.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/weed/mount/weedfs_file_io.go b/weed/mount/weedfs_file_io.go index add20caea..7a5d0d28c 100644 --- a/weed/mount/weedfs_file_io.go +++ b/weed/mount/weedfs_file_io.go @@ -67,14 +67,14 @@ func (wfs *WFS) Open(cancel <-chan struct{}, in *fuse.OpenIn, out *fuse.OpenOut) if status == fuse.OK { out.Fh = uint64(fileHandle.fh) out.OpenFlags = in.Flags - + // Apply ML optimizations if enabled if wfs.mlIntegration != nil { if path, _, entry, pathStatus := wfs.maybeReadEntry(in.NodeId); pathStatus == fuse.OK { wfs.mlIntegration.OnFileOpen(in.NodeId, entry, string(path), in.Flags, out) } } - + if wfs.option.IsMacOs { // remove the direct_io flag, as it is not well-supported on macOS // https://code.google.com/archive/p/macfuse/wikis/OPTIONS.wiki recommended to avoid the direct_io flag @@ -118,6 +118,6 @@ func (wfs *WFS) Release(cancel <-chan struct{}, in *fuse.ReleaseIn) { if wfs.mlIntegration != nil { wfs.mlIntegration.OnFileClose(in.NodeId) } - + wfs.ReleaseHandle(FileHandleId(in.Fh)) } |
