mirror of
https://github.com/minio/minio.git
synced 2025-04-17 01:10:29 -04:00
posix: Do not lowercase names, return as is. Object layer will filter them out. (#1699)
This commit is contained in:
parent
7ae5470395
commit
f6d9e73548
6
posix.go
6
posix.go
@ -210,12 +210,8 @@ func (s fsStorage) ListVols() (volsInfo []VolInfo, err error) {
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
for i, vol := range volsInfo {
|
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{
|
volInfo := VolInfo{
|
||||||
Name: volName,
|
Name: vol.Name,
|
||||||
Created: vol.Created,
|
Created: vol.Created,
|
||||||
Total: diskInfo.Total,
|
Total: diskInfo.Total,
|
||||||
Free: diskInfo.Free,
|
Free: diskInfo.Free,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user