aboutsummaryrefslogtreecommitdiff
path: root/src/libdiskfs/vfile.c
blob: 72ca0446c71c73aff19c60236211b6e2613321ec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
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
}