mirror of
https://github.com/minio/minio.git
synced 2025-11-22 10:37:42 -05:00
ci: Always set disks as non root disks (#14389)
In the testing mode, reformatting disks will fail because the healing code will complain if one disk is in root mode. This commit will automatically set all disks as non-root if MINIO_CI_CD is set.
This commit is contained in:
@@ -212,6 +212,7 @@ func newXLStorage(ep Endpoint) (s *xlStorage, err error) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var rootDisk bool
|
var rootDisk bool
|
||||||
|
if !globalIsCICD {
|
||||||
if globalRootDiskThreshold > 0 {
|
if globalRootDiskThreshold > 0 {
|
||||||
// Use MINIO_ROOTDISK_THRESHOLD_SIZE to figure out if
|
// Use MINIO_ROOTDISK_THRESHOLD_SIZE to figure out if
|
||||||
// this disk is a root disk.
|
// this disk is a root disk.
|
||||||
@@ -229,6 +230,7 @@ func newXLStorage(ep Endpoint) (s *xlStorage, err error) {
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
s = &xlStorage{
|
s = &xlStorage{
|
||||||
diskPath: path,
|
diskPath: path,
|
||||||
|
|||||||
Reference in New Issue
Block a user