mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-27 23:40:41 +01:00
A device-ID boundary alone does not prove FUSE: a tmpfs mount would pass mountedAt and report its results as FUSE compliance. Check the filesystem type (statfs magic on linux, fstypename on the BSDs); platforms without a check keep the mount and write verification.
10 lines
276 B
Go
10 lines
276 B
Go
//go:build (unix && !linux && !darwin && !freebsd) || (!unix && !windows)
|
|
|
|
package fuse
|
|
|
|
// fuseFilesystem has no portable check on these platforms; the mount check
|
|
// and write verification in Setup stay the only gates.
|
|
func fuseFilesystem(path string) bool {
|
|
return true
|
|
}
|