mirror of
https://github.com/minio/minio.git
synced 2025-11-30 05:41:00 -05:00
Improve disk formatting stage for large disk sets (#8690)
This commit is contained in:
committed by
kannappanr
parent
725172e13b
commit
f68a7005c0
@@ -551,6 +551,15 @@ func (s *posix) SetDiskID(id string) {
|
||||
// storage rest server for remote disks.
|
||||
}
|
||||
|
||||
func (s *posix) MakeVolBulk(volumes ...string) (err error) {
|
||||
for _, volume := range volumes {
|
||||
if err = s.MakeVol(volume); err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// Make a volume entry.
|
||||
func (s *posix) MakeVol(volume string) (err error) {
|
||||
defer func() {
|
||||
|
||||
Reference in New Issue
Block a user