Dump-like file system backup for Unix, built on Venti.

This commit is contained in:
rsc 2005-07-13 03:49:41 +00:00
parent 0c98da8bf8
commit 004aa293f3
27 changed files with 4437 additions and 0 deletions

22
src/cmd/vbackup/queue.h Normal file
View file

@ -0,0 +1,22 @@
enum
{
MAXQ = 256,
};
typedef struct Queue Queue;
struct Queue
{
struct {
Block *db;
u32int bno;
} el[MAXQ];
int ri, wi, nel, closed;
QLock lk;
Rendez r;
};
Queue *qalloc(void);
void qclose(Queue*);
Block *qread(Queue*, u32int*);
void qwrite(Queue*, Block*, u32int);