blob: 72ca0446c71c73aff19c60236211b6e2613321ec [file] [log] [blame]
rsc0c98da82005-07-13 03:48:35 +00001#include <u.h>
2#include <libc.h>
3#include <diskfs.h>
4#include <venti.h>
5
6extern void vtLibThread(void);
7
8typedef struct DiskVenti DiskVenti;
9struct DiskVenti
10{
11 TvCache *c;
12 Entry e;
13};
14
15Disk*
16diskOpenVenti(TvCache *c, uchar score[VtScoreSize])
17{
18 vtLibThread();
19
20 fetch vtroot
21 fetch dir block
22 copy e
23}
24
25Block*
26diskVentiRead(Disk *dd, u32int len, u64int offset)
27{
28 DiskVenti *d = (DiskVenti*)dd;
29
30 make offset list
31 walk down blocks
32 return the one
33}
34
35