File system access library.

This commit is contained in:
rsc 2005-07-13 03:48:35 +00:00
parent be7cbb4ef2
commit 0c98da8bf8
16 changed files with 2967 additions and 0 deletions

35
src/libdiskfs/vfile.c Normal file
View file

@ -0,0 +1,35 @@
#include <u.h>
#include <libc.h>
#include <diskfs.h>
#include <venti.h>
extern void vtLibThread(void);
typedef struct DiskVenti DiskVenti;
struct DiskVenti
{
TvCache *c;
Entry e;
};
Disk*
diskOpenVenti(TvCache *c, uchar score[VtScoreSize])
{
vtLibThread();
fetch vtroot
fetch dir block
copy e
}
Block*
diskVentiRead(Disk *dd, u32int len, u64int offset)
{
DiskVenti *d = (DiskVenti*)dd;
make offset list
walk down blocks
return the one
}