1
0
mirror of https://github.com/Adorable-Catgirl/Zorya-NEO.git synced 2024-12-24 09:58:06 +11:00
Zorya-NEO/lib/fs_foxfs/inode.lua

16 lines
599 B
Lua
Raw Normal View History

local function foxfs_getnodes(prox, sec)
2020-03-10 13:42:47 +11:00
[]
end
local function foxfs_readnode(prox, sec)
2020-03-10 13:42:47 +11:00
local dat = prox.readSector(sec)
local node = {pointers={}}
local size
node.size, node.namesize, node.mode, node.user, node.group, node.pointers[1], node.pointers[2], node.pointers[3], node.pointers[4], node.pointers[5], node.pointers[6], node.pointers[7], node.pointers[8], node.pointers[9], node.sip, node.dip, node.tip, size = string.unpack("<i3i1i2i2i2i3i3i3i3i3i3i3i3i3i3i3i3", sec)
node.name = dat:sub(size+1, size+node.namesize)
return node
end
local function foxfs_update(prox, sec, data)
2020-03-10 13:42:47 +11:00
end