vfs bugfix

This commit is contained in:
kepler155c@gmail.com 2020-04-26 20:36:50 -06:00
parent ef9f0e09b6
commit 602d12afc5
1 changed files with 3 additions and 0 deletions

View File

@ -279,6 +279,9 @@ function fs.mount(path, fstype, ...)
end
if not tp.nodes[d] then
tp.nodes[d] = Util.shallowCopy(tp)
if tp.fstype == 'linkfs' then
tp.nodes[d].source = fs.combine(tp.nodes[d].source, d)
end
tp.nodes[d].nodes = { }
tp.nodes[d].mountPoint = fs.combine(tp.mountPoint, d)
end