mirror of
https://github.com/minio/minio.git
synced 2024-12-24 22:25:54 -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
|
return info, errFaultyDisk
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if err := s.checkDiskFound(); err != nil {
|
||||||
|
return info, err
|
||||||
|
}
|
||||||
|
|
||||||
di, err := getDiskInfo(s.diskPath)
|
di, err := getDiskInfo(s.diskPath)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return info, err
|
return info, err
|
||||||
|
Loading…
Reference in New Issue
Block a user