From 88bce6cd96d7de50097616380cf43b24b5c8a38b Mon Sep 17 00:00:00 2001 From: XeonSquared Date: Wed, 20 Sep 2023 00:01:44 +1000 Subject: [PATCH] add fs_ prefix to exported filesystems to match OpenOS version, for cross-compatibility --- lib/netutil.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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