diff options
Diffstat (limited to 'src/libdiskfs/vfile.c')
-rw-r--r-- | src/libdiskfs/vfile.c | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/libdiskfs/vfile.c b/src/libdiskfs/vfile.c new file mode 100644 index 00000000..72ca0446 --- /dev/null +++ b/src/libdiskfs/vfile.c @@ -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 +} + + |