(ctx context.Context, _ uint32)
| 72 | } |
| 73 | |
| 74 | func (f *fuseFileNode) Open(ctx context.Context, _ uint32) (gofusefs.FileHandle, uint32, syscall.Errno) { |
| 75 | reader, err := f.entry.(fs.File).Open(ctx) //nolint:forcetypeassert |
| 76 | if err != nil { |
| 77 | log(ctx).Errorf("error opening %v: %v", f.entry.Name(), err) |
| 78 | |
| 79 | return nil, 0, syscall.EIO |
| 80 | } |
| 81 | |
| 82 | return &fuseFileHandle{reader: reader, file: f.entry.(fs.File)}, 0, gofusefs.OK //nolint:forcetypeassert |
| 83 | } |
| 84 | |
| 85 | type fuseFileHandle struct { |
| 86 | mu sync.Mutex |