diff --git a/lib/netutil.lua b/lib/netutil.lua index fbf5d9b..f827f22 100644 --- a/lib/netutil.lua +++ b/lib/netutil.lua @@ -5,7 +5,7 @@ local rpc = require "rpc" local netutil = {} function netutil.importfs(host,rpath,lpath) -- string string string -- boolean -- Import filesystem *rpath* from *host* and attach it to *lpath*. - local px = rpc.proxy(host,rpath.."_") + local px = rpc.proxy(host,"fs_"..rpath.."_") function px.getLabel() return host..":"..rpath end @@ -17,8 +17,8 @@ function netutil.exportfs(path) -- string -- boolean -- Export the directory *pa local path = "/"..table.concat(fs.segments(path),"/") local px = require("unionfs").create(path) for k,v in pairs(px) do - rpc.register(path.."_"..k,v) - print(path.."_"..k) + rpc.register("fs_"..path.."_"..k,v) + print("fs_"..path.."_"..k) end return true end