mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2026-10-23 14:30:46 +02:00
Setup creates the mount point before weed mount starts, so statting and listing it succeeded on the plain directory and tests ran against local disk whenever the mount was slow or died. waitForMount now waits until the mount point's device id differs from its parent's. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
11 lines
277 B
Go
11 lines
277 B
Go
//go:build !unix
|
|
|
|
package fuse
|
|
|
|
// FUSE mounts are unix-only: reporting one device keeps waitForMount from
|
|
// mistaking the plain pre-mount directory for a live mount on platforms
|
|
// where a mount can never appear.
|
|
func deviceID(path string) (uint64, error) {
|
|
return 0, nil
|
|
}
|