mirror of
https://github.com/pgsty/minio.git
synced 2026-08-10 16:23:28 +03:00
XL: allow meta bucket name appended with tmp meta prefix. (#2007)
This commit is contained in:
+2
-9
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user