blob: bf5272539f8a32d0a80fce64c5982cafa8f5bc17 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
|
QA output created by 738
=== Usage, no input files, incomplete input archive ===
Usage: pmlogmv [options] oldname newname
Options:
-N, --showme perform a dry run, showing what would be done
-V, --verbose increase diagnostic verbosity
-?, --help show this usage message and exit
exit status 1
Usage: pmlogmv [options] oldname newname
Options:
-N, --showme perform a dry run, showing what would be done
-V, --verbose increase diagnostic verbosity
-?, --help show this usage message and exit
exit status 1
pmlogmv: Error: cannot find any files for the input archive (foo)
exit status 1
pmlogmv: Error: cannot find .metadata file for the input archive (foo)
... ls data ... foo.0
exit status 1
pmlogmv: Error: cannot find any data files for the input archive (foo)
... ls data ... foo.meta
exit status 1
=== non-pcp archives and output files already exist ===
link foo.0 -> bar.0
link foo.index -> bar.index
link foo.meta -> bar.meta
remove foo.0
remove foo.index
remove foo.meta
bar.0
bar.index
bar.meta
foo.frog
--- bar.0 already exists ---
pmlogmv: Error: ln-pass: output file already exists: bar.0
... ls data ... bar.0
... ls data ... foo.0
... ls data ... foo.index
... ls data ... foo.meta
exit status 1
bar.0
foo.0
foo.index
foo.meta
--- bar.index already exists ---
link foo.0 -> bar.0
pmlogmv: Error: ln-pass: output file already exists: bar.index
... ls data ... bar.0
... ls data ... bar.index
... ls data ... foo.0
... ls data ... foo.index
... ls data ... foo.meta
cleanup: remove bar.0
exit status 1
bar.index
foo.0
foo.index
foo.meta
--- bar.meta already exists ---
link foo.0 -> bar.0
link foo.index -> bar.index
pmlogmv: Error: ln-pass: output file already exists: bar.meta
... ls data ... bar.0
... ls data ... bar.index
... ls data ... bar.meta
... ls data ... foo.0
... ls data ... foo.index
... ls data ... foo.meta
cleanup: remove bar.0
cleanup: remove bar.index
exit status 1
bar.meta
foo.0
foo.index
foo.meta
=== simplest case ===
link foo.0 -> bar.0
+ ln foo.0 bar.0
link foo.index -> bar.index
+ ln foo.index bar.index
link foo.meta -> bar.meta
+ ln foo.meta bar.meta
remove foo.0
+ rm foo.0
remove foo.index
+ rm foo.index
remove foo.meta
+ rm foo.meta
link foo.0 -> bar.0
link foo.index -> bar.index
link foo.meta -> bar.meta
remove foo.0
remove foo.index
remove foo.meta
ls: cannot access foo*: No such file or directory
bar.0
bar.index
bar.meta
=== single oldfile name cases ===
--- foo.meta ---
link foo.0 -> bar.0
link foo.index -> bar.index
link foo.meta -> bar.meta
remove foo.0
remove foo.index
remove foo.meta
ls: cannot access foo*: No such file or directory
bar.0
bar.index
bar.meta
--- foo.0 ---
link foo.0 -> bar.0
link foo.index -> bar.index
link foo.meta -> bar.meta
remove foo.0
remove foo.index
remove foo.meta
ls: cannot access foo*: No such file or directory
bar.0
bar.index
bar.meta
--- foo.index ---
link foo.0 -> bar.0
link foo.index -> bar.index
link foo.meta -> bar.meta
remove foo.0
remove foo.index
remove foo.meta
ls: cannot access foo*: No such file or directory
bar.0
bar.index
bar.meta
=== multi-volume case ===
link mv-foo.0 -> bar.0
link mv-foo.1 -> bar.1
link mv-foo.123456789 -> bar.123456789
link mv-foo.2 -> bar.2
link mv-foo.index -> bar.index
link mv-foo.meta -> bar.meta
remove mv-foo.0
remove mv-foo.1
remove mv-foo.123456789
remove mv-foo.2
remove mv-foo.index
remove mv-foo.meta
ls: cannot access foo*: No such file or directory
bar.0
bar.1
bar.123456789
bar.2
bar.index
bar.meta
=== old and new in different directories ==
link mv-foo.0 -> new/mv-foo.0
link mv-foo.1 -> new/mv-foo.1
link mv-foo.2 -> new/mv-foo.2
link mv-foo.index -> new/mv-foo.index
link mv-foo.meta -> new/mv-foo.meta
remove mv-foo.0
remove mv-foo.1
remove mv-foo.2
remove mv-foo.index
remove mv-foo.meta
ls: cannot access foo*: No such file or directory
new/mv-foo.0
new/mv-foo.1
new/mv-foo.2
new/mv-foo.index
new/mv-foo.meta
=== error case for ln failing ===
link mv-foo.0 -> new/mv-foo.0
ln: failed to create hard link 'new/mv-foo.0' => 'mv-foo.0': Permission denied
pmlogmv: Error: ln mv-foo.0 new/mv-foo.0 failed!
ls: cannot access new/mv-foo*: No such file or directory
... ls data ... mv-foo.0
... ls data ... mv-foo.1
... ls data ... mv-foo.2
... ls data ... mv-foo.index
... ls data ... mv-foo.meta
cleanup: remove new/mv-foo.0
exit status 1
ls: cannot access new/*: No such file or directory
mv-foo.0
mv-foo.1
mv-foo.2
mv-foo.index
mv-foo.meta
=== error case for rm failing ===
link mv-foo.0 -> new/mv-foo.0
link mv-foo.1 -> new/mv-foo.1
link mv-foo.2 -> new/mv-foo.2
link mv-foo.index -> new/mv-foo.index
link mv-foo.meta -> new/mv-foo.meta
remove mv-foo.0
rm: cannot remove 'mv-foo.0': Permission denied
pmlogmv: Warning: rm mv-foo.0 failed!
remove mv-foo.1
rm: cannot remove 'mv-foo.1': Permission denied
pmlogmv: Warning: rm mv-foo.1 failed!
remove mv-foo.2
rm: cannot remove 'mv-foo.2': Permission denied
pmlogmv: Warning: rm mv-foo.2 failed!
remove mv-foo.index
rm: cannot remove 'mv-foo.index': Permission denied
pmlogmv: Warning: rm mv-foo.index failed!
remove mv-foo.meta
rm: cannot remove 'mv-foo.meta': Permission denied
pmlogmv: Warning: rm mv-foo.meta failed!
mv-foo.0
mv-foo.1
mv-foo.2
mv-foo.index
mv-foo.meta
new/mv-foo.0
new/mv-foo.1
new/mv-foo.2
new/mv-foo.index
new/mv-foo.meta
=== Frank's error case rm failing after first file ===
link mv-foo.0 -> mv-bar.0
link mv-foo.1 -> mv-bar.1
link mv-foo.2 -> mv-bar.2
link mv-foo.3 -> mv-bar.3
link mv-foo.index -> mv-bar.index
link mv-foo.meta -> mv-bar.meta
remove mv-foo.0
remove mv-foo.1
pmlogmv: Error: rm-pass: link count 4 (not 2): mv-foo.2
... ls data ... mv-bar.0
... ls data ... mv-bar.1
... ls data ... mv-bar.2
... ls data ... mv-bar.3
... ls data ... mv-bar.index
... ls data ... mv-bar.meta
... ls data ... mv-foo.2
... ls data ... mv-foo.3
... ls data ... mv-foo.index
... ls data ... mv-foo.meta
cleanup: recover mv-foo.0 from mv-bar.0
cleanup: recover mv-foo.1 from mv-bar.1
cleanup: remove mv-bar.0
cleanup: remove mv-bar.1
cleanup: remove mv-bar.2
cleanup: remove mv-bar.3
cleanup: remove mv-bar.index
cleanup: remove mv-bar.meta
exit status 1
ls: cannot access mv-bar*: No such file or directory
mv-foo.0
mv-foo.1
mv-foo.2
mv-foo.3
mv-foo.index
mv-foo.meta
|