mirror of
https://git.shadowkat.net/izaya/OC-PsychOS2.git
synced 2024-11-15 01:07:02 -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 = {}
|
local netutil = {}
|
||||||
|
|
||||||
function netutil.importfs(host,rpath,lpath) -- string string string -- boolean -- Import filesystem *rpath* from *host* and attach it to *lpath*.
|
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()
|
function px.getLabel()
|
||||||
return host..":"..rpath
|
return host..":"..rpath
|
||||||
end
|
end
|
||||||
@ -17,8 +17,8 @@ function netutil.exportfs(path) -- string -- boolean -- Export the directory *pa
|
|||||||
local path = "/"..table.concat(fs.segments(path),"/")
|
local path = "/"..table.concat(fs.segments(path),"/")
|
||||||
local px = require("unionfs").create(path)
|
local px = require("unionfs").create(path)
|
||||||
for k,v in pairs(px) do
|
for k,v in pairs(px) do
|
||||||
rpc.register(path.."_"..k,v)
|
rpc.register("fs_"..path.."_"..k,v)
|
||||||
print(path.."_"..k)
|
print("fs_"..path.."_"..k)
|
||||||
end
|
end
|
||||||
return true
|
return true
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user