Blob
1 #include <u.h>2 #include <libc.h>3 #include <diskfs.h>4 #include <venti.h>6 extern void vtLibThread(void);8 typedef struct DiskVenti DiskVenti;9 struct DiskVenti10 {11 TvCache *c;12 Entry e;13 };15 Disk*16 diskOpenVenti(TvCache *c, uchar score[VtScoreSize])17 {18 vtLibThread();20 fetch vtroot21 fetch dir block22 copy e23 }25 Block*26 diskVentiRead(Disk *dd, u32int len, u64int offset)27 {28 DiskVenti *d = (DiskVenti*)dd;30 make offset list31 walk down blocks32 return the one33 }