posix: Do not lowercase names, return as is. Object layer will filter them out. (#1699)

This commit is contained in:
Harshavardhana 2016-05-19 18:52:55 -07:00 committed by Anand Babu (AB) Periasamy
parent 7ae5470395
commit f6d9e73548

View File

@ -210,12 +210,8 @@ func (s fsStorage) ListVols() (volsInfo []VolInfo, err error) {
return nil, err
}
for i, vol := range volsInfo {
// Volname on case sensitive fs backends can come in as
// capitalized, but object layer cannot consume it
// directly. Convert it as we see fit.
volName := strings.ToLower(vol.Name)
volInfo := VolInfo{
Name: volName,
Name: vol.Name,
Created: vol.Created,
Total: diskInfo.Total,
Free: diskInfo.Free,