mirror of
https://github.com/minio/minio.git
synced 2024-12-24 06:05:55 -05:00
Add checks in DiskInfo() to protect against changing mounts (#8286)
This commit is contained in:
parent
cb7d23cb17
commit
975134e42b
@ -329,6 +329,10 @@ func (s *posix) DiskInfo() (info DiskInfo, err error) {
|
||||
return info, errFaultyDisk
|
||||
}
|
||||
|
||||
if err := s.checkDiskFound(); err != nil {
|
||||
return info, err
|
||||
}
|
||||
|
||||
di, err := getDiskInfo(s.diskPath)
|
||||
if err != nil {
|
||||
return info, err
|
||||
|
Loading…
Reference in New Issue
Block a user