mirror of
https://git.shadowkat.net/izaya/OC-PsychOS2.git
synced 2024-11-14 17:00:27 -05:00
add fs_ prefix to exported filesystems to match OpenOS version, for cross-compatibility
This commit is contained in:
parent
a7708b9e47
commit
88bce6cd96
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user