- Sort Score
- Num 10 results
- Language All
Results 1 - 2 of 2 for IsRootDisk (0.04 seconds)
-
internal/disk/root_disk.go
// along with this program. If not, see <http://www.gnu.org/licenses/>. package disk import "runtime" // IsRootDisk returns if diskPath belongs to root-disk, i.e the disk mounted at "/" func IsRootDisk(diskPath string, rootDisk string) (bool, error) { if runtime.GOOS == "windows" { // On windows this function is not implemented. return false, nil }
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Tue Jun 01 21:59:40 GMT 2021 - 1.1K bytes - Click Count (0) -
cmd/xl-storage.go
// this disk is a root disk. treat those disks with // size less than or equal to the threshold as rootDrives. rootDrive = di.Total <= globalRootDiskThreshold } else { rootDrive, err = disk.IsRootDisk(drivePath, SlashSeparator) } } } switch { case osIsNotExist(err): err = errDiskNotFound case isSysErrTooLong(err): err = errFileNameTooLong case isSysErrIO(err):
Created: Sun Dec 28 19:28:13 GMT 2025 - Last Modified: Sun Sep 28 20:59:21 GMT 2025 - 91.7K bytes - Click Count (0)