posix: Return diskNotFound error rather than errVolumeNotFound (#1568)

Fixes #1559
This commit is contained in:
Harshavardhana
2016-05-09 18:57:39 -07:00
parent b66c3bf35e
commit eec41c369c
2 changed files with 5 additions and 1 deletions

View File

@@ -185,7 +185,8 @@ func (s fsStorage) getVolumeDir(volume string) (string, error) {
var volsInfo []VolInfo
volsInfo, err = getAllUniqueVols(s.diskPath)
if err != nil {
return volumeDir, errVolumeNotFound
// For any errors, treat it as disk not found.
return volumeDir, errDiskNotFound
}
for _, vol := range volsInfo {
// Verify if lowercase version of the volume is equal to