mirror of
https://github.com/minio/minio.git
synced 2024-12-24 06:05:55 -05:00
fix: remove inode free as part of SameDisk check (#11107)
This commit is contained in:
parent
e7d3b49a20
commit
d674263eb7
@ -43,8 +43,8 @@ func SameDisk(di1, di2 Info) bool {
|
||||
return false
|
||||
}
|
||||
|
||||
// returns true only if Used, Free and number of free
|
||||
// inodes are same, then its the same disk.
|
||||
return di1.Used == di2.Used && di1.Free == di2.Free &&
|
||||
di1.Ffree == di2.Ffree
|
||||
// returns true only if Used, Free are same, then its the same disk.
|
||||
// we are deliberately not using free inodes as that is unreliable
|
||||
// due the fact that Ffree can vary even for temporary files
|
||||
return di1.Used == di2.Used && di1.Free == di2.Free
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user