22 lines
406 B
Lua
22 lines
406 B
Lua
|
local fox = {}
|
||
|
do
|
||
|
--#include "ksrc/fs/foxfs/inode.lua"
|
||
|
--#include "ksrc/fs/foxfs/dir.lua"
|
||
|
--#include "ksrc/fs/foxfs/superblock.lua"
|
||
|
--#include "ksrc/fs/foxfs/blkstream.lua"
|
||
|
|
||
|
local prox = {}
|
||
|
|
||
|
function fox.proxy(dev)
|
||
|
-- Read the superblock
|
||
|
sb:seek("set", 1025)
|
||
|
local sb = superblock(dev:read(#superblock))
|
||
|
local prox = {
|
||
|
super = sb
|
||
|
}
|
||
|
end
|
||
|
|
||
|
local function fox_getinode(prox, inode)
|
||
|
|
||
|
end
|
||
|
end
|