Documentation
¶
Overview ¶
Package fsprobe asks the file system about a path without letting a dead mount eat the process: a stat on a hung NFS share blocks in the kernel for good, and the Go runtime starts a new OS thread for every blocked call (HRN-1735: 299 threads, 283 of them stuck, on a machine whose NFS server was gone). Here a probe has a deadline and the number of probes that may be stuck at once is capped, so the extra callers get an error at once instead of a thread.
Index ¶
Constants ¶
const MaxStuck = 16
MaxStuck is how many probes may be in flight at once; one more is refused without touching the disk.
const Timeout = 3 * time.Second
Timeout is how long a probe may take before the caller gives up on it.
Variables ¶
ErrUnavailable is returned when the path did not answer in time or too many probes are already waiting.
Functions ¶
Types ¶
This section is empty.