mirror of
https://github.com/pgsty/minio.git
synced 2026-07-23 06:00:24 +03:00
posix: Do not lowercase names, return as is. Object layer will filter them out. (#1699)
This commit is contained in:
committed by
Anand Babu (AB) Periasamy
parent
7ae5470395
commit
f6d9e73548
@@ -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,
|
||||||
|
|||||||
Reference in New Issue
Block a user