Commit 99c5447e authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

More verbosity in illegal name message.

parent cf2d1c3c
...@@ -155,7 +155,7 @@ func (fs *AutoUnionFs) rmFs(name string) (code fuse.Status) { ...@@ -155,7 +155,7 @@ func (fs *AutoUnionFs) rmFs(name string) (code fuse.Status) {
func (fs *AutoUnionFs) addFs(name string, roots []string) (code fuse.Status) { func (fs *AutoUnionFs) addFs(name string, roots []string) (code fuse.Status) {
if name == _CONFIG || name == _STATUS || name == _SCAN_CONFIG { if name == _CONFIG || name == _STATUS || name == _SCAN_CONFIG {
log.Println("Illegal name for overlay", roots) log.Printf("Illegal name %q for overlay: %v", name, roots)
return fuse.EINVAL return fuse.EINVAL
} }
return fs.createFs(name, roots) return fs.createFs(name, roots)
...@@ -373,7 +373,7 @@ func (fs *AutoUnionFs) DebugData() string { ...@@ -373,7 +373,7 @@ func (fs *AutoUnionFs) DebugData() string {
if fs.connector != nil { if fs.connector != nil {
msg += fmt.Sprintf("Live inodes: %d\n", fs.connector.InodeHandleCount()) msg += fmt.Sprintf("Live inodes: %d\n", fs.connector.InodeHandleCount())
} }
return msg return msg
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment