blob: 12d664f4ba7a4792a502b54d017627689d8f56af [file] [log] [blame]
rscbe7cbb42005-07-12 15:24:18 +00001.TH VENTI 1
2.SH NAME
3read, write, copy \- simple Venti clients
4.SH SYNOPSIS
5.B venti/read
6[
7.B -h
8.I host
9]
10[
11.B -t
12.I type
13]
14.I score
15.br
16.B venti/write
17[
18.B -z
19]
20[
21.B -h
22.I host
23]
24[
25.B -t
26.I type
27]
28.br
29.B venti/copy
30[
31.B -fir
32]
33[
34.B -t
35.I type
36]
37.I srchost
38.I dsthost
39.I score
40.SH DESCRIPTION
41Venti is a SHA1-addressed block storage server.
42See
43.IR venti (7)
44for a full introduction.
45.PP
46.I Read
47reads a block with the given
48.I score
49and numeric
50.I type
51from the server
52.I host
53and prints the block to standard output.
54If the
55.B -h
56option is omitted,
57.I read
58consults the environment variable
59.B $venti
60for the name of the Venti server.
61If the
62.B -t
63option is omitted,
64.I read
65will try each type, one at a time, until it finds
66one that works.
67It prints the corresponding
68.B read
69.B -t
70command to standard error
71to indicate the type of the block.
72.PP
73.I Write
74writes at most 56 kilobytes of data from standard input
75to the server
76.I host
77and prints the resulting score to standard output.
78If the
79.B -t
80option is omitted,
81.I write
82uses type 0,
83denoting a data block.
84If the
85.B -z
86option is given,
87.I write
rsc3aec33f2005-07-18 22:41:58 +000088zero truncates the block before writing it to the server.
rscbe7cbb42005-07-12 15:24:18 +000089.PP
90.I Copy
91expects
92.I score
93to be the score of a
94.B VtRoot
95block.
96It copies the entire tree of blocks reachable from
97the root block from the server
98.I srchost
99to the server
100.IR dsthost .
101.PP
102The
103.B -f
104option causes
105.I copy
106to run in `fast' mode,
107assuming that if a block already exists on the
108destination Venti server, all its children also
109exist and need not be checked.
110.PP
111The
112.B -i
113and
114.B -r
115option control
116.IR copy 's
rsc3aec33f2005-07-18 22:41:58 +0000117reaction to errors reading
118from
119.IR srchost .
rscbe7cbb42005-07-12 15:24:18 +0000120.I Copy
121always prints information to standard error
122about each read error.
123By default,
124.I copy
rsc3aec33f2005-07-18 22:41:58 +0000125exits after printing the first error.
rscbe7cbb42005-07-12 15:24:18 +0000126If the
127.B -i
128option is given, read errors are ignored.
129This is dangerous behavior because it breaks the
130assumption made by `fast' mode.
131If the
132.B -r
133option is given,
134.I copy
135replaces pointers to unreadable blocks with
136pointers to the zero block.
137It writes the new root score to standard output.
138.SH SOURCE
rsce5e159f2005-07-18 23:05:26 +0000139.B \*9/src/cmd/venti
rscbe7cbb42005-07-12 15:24:18 +0000140.SH SEE ALSO
141.IR vac (1),
rscbe7cbb42005-07-12 15:24:18 +0000142.IR venti (3),
143.IR vacfs (4),
rscbe7cbb42005-07-12 15:24:18 +0000144.IR venti (7),
rsc3aec33f2005-07-18 22:41:58 +0000145.IR vbackup (8),
rscbe7cbb42005-07-12 15:24:18 +0000146.IR venti (8)
147.SH BUGS
148There should be programs to read and write
rsc3aec33f2005-07-18 22:41:58 +0000149venti files and directories.