@@ -15,6 +15,7 @@ import (
1515/*
1616* the root fs is supposed to load and interact
1717* with the namespaces and to show them as directories
18+ * Hierarchy: fsRoot -> fsNamespace -> fsGroup -> fsFile
1819 */
1920
2021type rootNode struct {
@@ -93,7 +94,7 @@ func (root *rootNode) load(nsCB func(name string)) error {
9394
9495 // Loop Namespaces and add childs in as folders
9596 for _ , namespace := range data .userAttributes .Namespace {
96- nsName := removeNSName (namespace .Name )
97+ nsName := removeNsName (namespace .Name )
9798
9899 // Find namespace node
99100 v , has := root .nsNodes [nsName ]
@@ -136,7 +137,7 @@ func (root *rootNode) Lookup(ctx context.Context, name string, out *fuse.EntryOu
136137
137138// Delete Namespace if virtual file was unlinked
138139func (root * rootNode ) Rmdir (ctx context.Context , name string ) syscall.Errno {
139- namespace := addNSName (name , data .libdm .Config )
140+ namespace := addNsName (name , data .libdm .Config )
140141
141142 // wait 2 seconds to ensure, user didn't cancel
142143 select {
@@ -163,8 +164,8 @@ func (root *rootNode) Rename(ctx context.Context, name string, newParent fs.Inod
163164 }
164165
165166 // Get real namespace names
166- oldNSName := addNSName (name , data .libdm .Config )
167- newNSName := addNSName (newName , data .libdm .Config )
167+ oldNSName := addNsName (name , data .libdm .Config )
168+ newNSName := addNsName (newName , data .libdm .Config )
168169 root .debug ("rename namespace" , oldNSName , "->" , newNSName )
169170
170171 // Make rename request
0 commit comments