(ctx context.Context, req *fuse.ReadlinkRequest)
| 367 | } |
| 368 | |
| 369 | func (n *roFile) Readlink(ctx context.Context, req *fuse.ReadlinkRequest) (string, error) { |
| 370 | Logger.Printf("roFile.Readlink(%q)", n.fullPath()) |
| 371 | n.mu.Lock() |
| 372 | defer n.mu.Unlock() |
| 373 | if !n.symLink { |
| 374 | Logger.Printf("roFile.Readlink on node that's not a symlink?") |
| 375 | return "", fuse.EIO |
| 376 | } |
| 377 | return n.target, nil |
| 378 | } |
| 379 | |
| 380 | // roFileOrDir is a *roFile or *roDir |
| 381 | type roFileOrDir interface { |