Commit cba6dd5d authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

Fix bug for root attributes of MemNodeFs.

parent beb5f868
...@@ -160,6 +160,8 @@ func NewMemUnionFs(backingStore string, roFs fuse.FileSystem) *MemUnionFs { ...@@ -160,6 +160,8 @@ func NewMemUnionFs(backingStore string, roFs fuse.FileSystem) *MemUnionFs {
me.backingStore = backingStore me.backingStore = backingStore
me.readonly = roFs me.readonly = roFs
me.root = me.newNode(true) me.root = me.newNode(true)
fi, _ := roFs.GetAttr("", nil)
me.root.info = *fi
me.cond = sync.NewCond(&me.mutex) me.cond = sync.NewCond(&me.mutex)
return me return me
} }
......
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