XL: allow meta bucket name appended with tmp meta prefix. (#2007)

This commit is contained in:
Bala FA
2016-06-29 14:58:46 +05:30
committed by Harshavardhana
parent ae936a0147
commit 4c1a11aae6
6 changed files with 142 additions and 17 deletions
+2 -9
View File
@@ -18,19 +18,12 @@
package main
import (
"os"
"strings"
)
import "os"
// isValidVolname verifies a volname name in accordance with object
// layer requirements.
func isValidVolname(volname string) bool {
if len(volname) < 3 || len(volname) > 63 {
return false
}
// Volname shouldn't have '/' in it.
return !strings.ContainsAny(volname, "/")
return !(len(volname) < 3 || len(volname) > 63)
}
// mkdirAll creates a directory named path,