diff --git a/cmd/xl-storage.go b/cmd/xl-storage.go index 204b24bb3..c277677a4 100644 --- a/cmd/xl-storage.go +++ b/cmd/xl-storage.go @@ -212,21 +212,23 @@ func newXLStorage(ep Endpoint) (s *xlStorage, err error) { } var rootDisk bool - if globalRootDiskThreshold > 0 { - // Use MINIO_ROOTDISK_THRESHOLD_SIZE to figure out if - // this disk is a root disk. - info, err := disk.GetInfo(path) - if err != nil { - return nil, err - } + if !globalIsCICD { + if globalRootDiskThreshold > 0 { + // Use MINIO_ROOTDISK_THRESHOLD_SIZE to figure out if + // this disk is a root disk. + info, err := disk.GetInfo(path) + if err != nil { + return nil, err + } - // treat those disks with size less than or equal to the - // threshold as rootDisks. - rootDisk = info.Total <= globalRootDiskThreshold - } else { - rootDisk, err = disk.IsRootDisk(path, SlashSeparator) - if err != nil { - return nil, err + // treat those disks with size less than or equal to the + // threshold as rootDisks. + rootDisk = info.Total <= globalRootDiskThreshold + } else { + rootDisk, err = disk.IsRootDisk(path, SlashSeparator) + if err != nil { + return nil, err + } } }