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

master
Harshavardhana 9 years ago committed by Anand Babu (AB) Periasamy
parent 7ae5470395
commit f6d9e73548
  1. 6
      posix.go

@ -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,

Loading…
Cancel
Save