- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for IsRootDisk (0.29 sec)
-
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 }
Go - Registered: Sun Apr 21 19:28:08 GMT 2024 - Last Modified: Tue Jun 01 21:59:40 GMT 2021 - 1.1K bytes - Viewed (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 = info.Total <= globalRootDiskThreshold } else { rootDrive, err = disk.IsRootDisk(s.drivePath, SlashSeparator) if err != nil { return nil, err } } if rootDrive { return s, errDriveIsRoot } } // Sanitize before setting it if info.NRRequests > 0 {
Go - Registered: Sun Apr 21 19:28:08 GMT 2024 - Last Modified: Fri Apr 19 11:26:59 GMT 2024 - 82.4K bytes - Viewed (0)