Dump-like file system backup for Unix, built on Venti.
This commit is contained in:
parent
0c98da8bf8
commit
004aa293f3
27 changed files with 4437 additions and 0 deletions
22
src/cmd/vbackup/queue.h
Normal file
22
src/cmd/vbackup/queue.h
Normal 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);
|
||||
Loading…
Add table
Add a link
Reference in a new issue