Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for IsRootDisk (0.12 sec)

  1. 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
    	}
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Tue Jun 01 21:59:40 UTC 2021
    - 1.1K bytes
    - Viewed (0)
  2. 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):
    Registered: Sun Nov 03 19:28:11 UTC 2024
    - Last Modified: Sat Oct 26 09:58:27 UTC 2024
    - 91.3K bytes
    - Viewed (0)
Back to top