mirror of
https://github.com/pgsty/minio.git
synced 2026-07-23 14:10:25 +03:00
XL: Bring in some modularity into format verification and healing. (#1832)
This commit is contained in:
@@ -219,6 +219,11 @@ func (s posix) ListVols() (volsInfo []VolInfo, err error) {
|
||||
|
||||
// StatVol - get volume info.
|
||||
func (s posix) StatVol(volume string) (volInfo VolInfo, err error) {
|
||||
// Validate if disk is free.
|
||||
if err = checkDiskFree(s.diskPath, s.minFreeDisk); err != nil {
|
||||
return VolInfo{}, err
|
||||
}
|
||||
|
||||
// Verify if volume is valid and it exists.
|
||||
volumeDir, err := s.getVolDir(volume)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user