返回 DeepSeek-Reasonix
remote_fs_linux.go
根目录 / internal / projectiondb / remote_fs_linux.go
1 //go:build linux
2
3 package projectiondb
4
5 import "syscall"
6
7 func filesystemRemote(path string) bool {
8 var stat syscall.Statfs_t
9 if err := syscall.Statfs(path, &stat); err != nil {
10 return false
11 }
12 switch uint64(stat.Type) {
13 case 0x6969, 0x517B, 0xFF534D42, 0x6E667364, 0x00C36400, 0x0BD00BD0:
14 return true
15 default:
16 return false
17 }
18 }
19
19 lines GO