summaryrefslogtreecommitdiffstats
path: root/src/libdiskfs/vfile.c
diff options
context:
space:
mode:
authorrsc <devnull@localhost>2005-07-13 03:48:35 +0000
committerrsc <devnull@localhost>2005-07-13 03:48:35 +0000
commit0c98da8bf8ea51d0288222f6c6ba3c125cf20f46 (patch)
treed249da5fdda43c001a6a99f7354084a5cbfbacef /src/libdiskfs/vfile.c
parentbe7cbb4ef2cb02aa9ac48c02dc1ee585a8e49043 (diff)
downloadplan9port-0c98da8bf8ea51d0288222f6c6ba3c125cf20f46.tar.gz
plan9port-0c98da8bf8ea51d0288222f6c6ba3c125cf20f46.zip
File system access library.
Diffstat (limited to 'src/libdiskfs/vfile.c')
-rw-r--r--src/libdiskfs/vfile.c35
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
+}
+
+