| 1 | // Stub for platforms where go-fuse does not compile but the user |
| 2 | // has not set the nofuse build tag. Returns a clear error instead |
| 3 | // of a build failure. See https://github.com/ipfs/kubo/issues/5334. |
| 4 | //go:build (openbsd || netbsd || plan9) && !nofuse |
| 5 | |
| 6 | package node |
| 7 | |
| 8 | import ( |
| 9 | "errors" |
| 10 | |
| 11 | core "github.com/ipfs/kubo/core" |
| 12 | ) |
| 13 | |
| 14 | func Mount(node *core.IpfsNode, fsdir, nsdir, mfsdir string) error { |
| 15 | return errors.New("FUSE not supported on OpenBSD or NetBSD. See #5334 (https://github.com/ipfs/kubo/issues/5334).") |
| 16 | } |
| 17 | |
| 18 | func Unmount(node *core.IpfsNode) { |
| 19 | return |
| 20 | } |