Whamcloud - gitweb
b=20615 always send ZC_ACK on non-blocking connection
[fs/lustre-release.git] / build / buildcvs
1 # This file is sourced by lustre/lustrecvs
2
3 portalstag=""
4 lnettag="b1_x"
5 libsysiotag="HEAD"
6 snmptag="HEAD"
7 ldiskfstag="HEAD"
8 ldiskfstag_head="HEAD"
9 lustreiokittag="HEAD"
10 libcfstag="b1_x"
11 dmutag="" # uDMU
12 spltag=""
13 zfstag=""
14 hg_base_url="http://www.wizy.org/mercurial"
15 git_base_url="git@git.lustre.org:%s.git"
16
17 export LC_COLLATE=C
18
19 case "$lustretag" in
20     '')
21         warn "a lustretag is required."
22         usage >&2
23         exit 1
24         ;;
25     --help | -h)
26         usage
27         exit 0
28         ;;
29
30     # this is the branch table
31     # keep this list sorted alphabetically!
32
33     # Note these are "specials" -- branches using lnet b1_x don't need an
34     # entry here.
35
36     b1_2)
37         portalstag="b1_2"
38         lnettag=""
39         libsysiotag=""
40         snmptag=""
41         ;;
42
43     b1_4_atime_update)
44         portalstag="b_hd_newconfig"
45         ;;
46
47     b1_4_join)
48         portalstag="b_hd_newconfig"
49         ;;
50
51     b1_4_lfs_df)
52         portalstag="b_hd_newconfig"
53         ;;
54
55     b1_4_lov_lvb_cleanup)
56         portalstag="b_hd_newconfig"
57         ;;
58
59     b1_4_next_recovery_transno)
60         portalstag="b_hd_newconfig"
61         ;;
62
63     b_cmd_cray)
64         lnettag="HEAD"
65         libcfstag="HEAD"
66         ;;
67
68     b_cmd*)
69         portalstag="$lustretag"
70         ;;
71
72     b_iam*)
73         portalstag="b_hd_newconfig"
74         # XXX temorary tag until b_iam* is updated from b1_4 liblustre
75         libsysiotag="HEAD_RELEASE_1_4_6_LAND_PARENT_20060223_1455"
76         ;;
77
78     b_ioprovement)
79         portalstag="b_ioprovement"
80         ;;
81
82     b_mpilnd)
83         # lnet mpilnd development branch
84         lnettag="b_mpilnd"
85         lustretag="HEAD"
86         ;;
87
88     b_new_cmd)
89         portalstag="b_new_portals"
90         # lnettag="b_lnet_tmp"
91         ;;
92
93     b_newconfig_rdmarouting)
94         portalstag="b_hd_newconfig"
95         lnettag="b_newconfig_rdmarouting"
96         lustretag="b1_4"
97         ;;
98
99     b_port_ahead)
100         portalstag="b_port_ahead"
101         ;;
102
103     b_port_netid)
104         portalstag="b_port_netid"
105         ;;
106
107     # b_port_step is only for portals
108     b_port_step)
109         portalstag="b_port_step"
110         lustretag="HEAD"
111         ;;
112
113     b_port_test)
114         portalstag="b_port_test"
115         ;;
116
117     b_ptlrpc_cleanup)
118         portalstag="b_ptlrpc_cleanup"
119         ;;
120
121     b_ptl_smallfix)
122         portalstag="b_ptl_smallfix"
123         lustretag="b1_4"
124         ;;
125
126     # before 1_4_6, we didn't have lnet or snmp
127     b_release_1_2_*|b_release_1_4_[0-5])
128         portalstag="$lustretag"
129         lnettag=""
130         libsysiotag="$lustretag"
131         snmptag=""
132         ;;
133
134     b_release_1_4_6)
135         portalstag="$lustretag"
136         lnettag="$lustretag"
137         libsysiotag="$lustretag"
138         snmptag="$lustretag"
139         ;;
140
141     b_release_1_4_6-patchless)
142         portalstag=b_release_1_4_6
143         lnettag=b_release_1_4_6-patchless
144         libsysiotag=b_release_1_4_6
145         snmptag=b_release_1_4_6
146         ;;
147
148     # all later b_release_* tags
149     b_release_*)
150         lnettag="$lustretag"
151         libsysiotag="$lustretag"
152         snmptag="$lustretag"
153         ldiskfstag="$lustretag"
154         ;;
155
156     b_self_test)
157         # lnet self test development branch
158         lnettag="b_self_test"
159         lustretag="HEAD"
160         ;;
161
162     b_usocklnd)
163         # lnet usocklnd development branch
164         lnettag="b_usocklnd"
165         lustretag="b1_6_usocklnd"
166         ;;
167
168     b_uo2iblnd)
169         # lnet u-o2iblnd development branch
170         lnettag="b_uo2iblnd"
171         lustretag="HEAD"
172         ;;
173
174     b_hd_smp)
175         # LNet grained locking and SMP improvement branch
176         libcfstag="b_hd_libcfs_smp"
177         lnettag="b_hd_lnet_smp"
178         ldiskfstag="$ldiskfstag_head"
179         lustretag="b_hd_lustre_smp"
180         ;;
181
182     b_hd_md_perf)
183         # LNet branch for new o2iblnd protocol (15983, 13621, 14425, 14358)
184         lnettag="HD_LNET_SMP_BASE"
185         ldiskfstag="$ldiskfstag_head"
186         lustretag="HD_LUSTRE_SMP_BASE"
187         libcfstag="HD_LIBCFS_SMP_BASE"
188         ;;
189
190     b_ula)
191         # lnet "User Level Access" development branch
192         lnettag="b_ula"
193         lustretag="HEAD"
194         ldiskfstag="$ldiskfstag_head"
195         ;;
196
197     # CMD3
198     b_post_cmd3|b_new_cmd_sles10|b1_6_head_sync|b_mixed_layout_req|b_mount_perm|b1_8_gns|b1_8_interop_server)
199         # Update b1_8 above when changing this.
200         ldiskfstag="$ldiskfstag_head"
201         ;;
202
203     #umds cleanup
204     b_hd_umds_cln2)
205         ldiskfstag="b1_8_iam_dynlock"
206         ;;
207
208     # uOSS
209     b_hd_dmu)
210         lnettag="b_uoss"
211         ldiskfstag="$ldiskfstag_head"
212         dmutag="zfs-lustre"
213         ;;
214
215     # read-only cache for oss
216     b_hd_rocache_oss)
217         lnettag="HEAD"
218         ldiskfstag="b1_8_iam"
219         libcfstag="HEAD"
220         ;;
221  
222     # vector read/write 
223     b_hd_readx)
224         lnettag="HEAD"
225         ldiskfstag="$ldiskfstag_head"
226         libcfstag="HEAD"
227         ;;
228    
229     # params_tree 
230     b_hd_params_tree)
231         lnettag="b_hd_params_tree"
232         ldiskfstag="$ldiskfstag_head"
233         libcfstag="b_hd_params_tree"
234         lustretag="b_hd_params_tree"
235         ;;
236   
237     # Network request scheduler
238     b_hd_nrs)
239         lnettag="HEAD"
240         ldiskfstag="$ldiskfstag_head"
241         libcfstag="HEAD"
242         ;;
243  
244     # uMDS
245     b_dmu_umds)
246         lnettag="b_uoss_umds"
247         ldiskfstag="$ldiskfstag_head"
248         dmutag="zfs-lustre"
249         ;;
250
251     # uOSS o2iblnd
252     b_uoss_o2iblnd)
253         lnettag="b_uoss_o2iblnd"
254         lustretag="b_hd_dmu"
255         ldiskfstag="$ldiskfstag_head"
256         dmutag="zfs-lustre"
257         ;;
258
259     # client io stack cleanup
260     b_client_io_layering)
261         lnettag="HEAD"
262         ldiskfstag="$ldiskfstag_head"
263         libcfstag="HEAD"
264         ;;
265     
266     # HEAD cmd fixes
267     b_head_cmd)
268         lnettag="HEAD"
269         ldiskfstag="$ldiskfstag_head"
270         libcfstag="HEAD"
271         ;;
272     
273     # windows client porting (lustre: b_client_io_layering, lnet: HEAD) 
274     b_winnt_port)
275         ldiskfstag="$ldiskfstag_head"
276         lnettag="b_winnt_port"
277         libcfstag="b_winnt_port"
278         ;;
279     
280     # v1.0-v1.3, v1.4.0-v1.4.2
281     v1_[0-3]_*|v1_4_[0-2]|v1_4_[0-2]_*)
282         portalstag="$lustretag"
283         lnettag=""
284         libsysiotag="$lustretag"
285         snmptag=""
286         ;;
287
288     # v1.4.3-v1.4.5, v1.4.5.1 - v1.4.5.9
289     v1_4_[3-5]|v1_4_[3-4]_*|v1_4_5_[1-9]|cray_2005*)
290         portalstag="$lustretag"
291         lnettag=""
292         libsysiotag="$lustretag"
293         snmptag="$lustretag"
294         ;;
295
296     # v1.4.6, v1.4.6.[1-91]
297     v1_4_6_[1-9]|v1_4_6_9[01])
298         portalstag="$lustretag"
299         lnettag=""
300         libsysiotag="$lustretag"
301         snmptag="$lustretag"
302         ;;
303
304     # Interoperability server side changes
305     b_head_interop_disk)
306         lnettag="HEAD"
307         ldiskfstag="b_ldiskfs_interop_server"
308         libcfstag="HEAD"
309         ;;
310
311     # libcfs name normalization changes
312     b_hd_nn)
313         libcfstag="b_hd_libcfs_nn"
314         lnettag="b_hd_lnet_nn"
315         ldiskfstag="$ldiskfstag_head"
316         lustretag="b_hd_lustre_nn"
317         ;; 
318
319     # Branches that have been updated to include
320     # the libcfs split should be added here
321     HEAD|b_head_capa|b_hd_cfld|b_hd_changelog|b_hd_sptlrpc|HD_SPTLRPC_BASE|b_som|b_hd_recov|b_hd_transapi)
322         lnettag="HEAD"
323         ldiskfstag="$ldiskfstag_head"
324         libcfstag="HEAD"
325         ;;
326
327     b_hd_kdmu)
328         # Identical to HEAD + spl and zfs
329         lnettag="HEAD"
330         ldiskfstag="$ldiskfstag_head"
331         libcfstag="HEAD"
332         spltag="pre-alpha"
333         zfstag="patched"
334         ;;
335     b_kdmu_params)
336         # Identical to HEAD + spl and zfs
337         lnettag="b_hd_params_tree"
338         ldiskfstag="$ldiskfstag_head"
339         libcfstag="b_hd_params_tree"
340         lustretag="b_kdmu_params"
341         spltag="pre-alpha"
342         zfstag="patched"
343         ;;
344
345     b_head_libcfs)
346         lnettag="b_head_libcfs"
347         ldiskfstag="$ldiskfstag_head"
348         libcfstag="b_head_libcfs"
349         ;;
350
351     b_head_procfs)
352         lnettag="HEAD"
353         ldiskfstag="$ldiskfstag_head"
354         libcfstag="b_head_procfs"
355         ;;
356
357     b2_0-bld*)
358         lnettag="$lustretag"
359         ldiskfstag="$ldiskfstag_head"
360         libcfstag="$lustretag"
361         ;;
362
363     # all later v* tags
364     v[1-9]*)
365         lnettag="$lustretag"
366         libsysiotag="$lustretag"
367         snmptag="$lustretag"
368         ldiskfstag="$lustretag"
369         libcfstag="$lustretag"
370         ;;
371
372     b_HEAD_*|b_head_*|b_hd_*)
373         lnettag="HEAD"
374         ldiskfstag="$ldiskfstag_head"
375         libcfstag="HEAD"
376         ;;
377 esac
378
379 cvs_cmd libsysio libsysio "$libsysiotag"
380 cvs_cmd portals portals "$portalstag"
381 cvs_cmd lnet lnet "$lnettag"
382 cvs_cmd snmp lustre-snmp "$snmptag"
383 cvs_cmd lustre lustre-core "$lustretag"
384 cvs_cmd ldiskfs ldiskfs "$ldiskfstag"
385 cvs_cmd lustre-iokit lustre-iokit "$lustreiokittag"
386 hg_cmd lustre/zfs-lustre "$hg_base_url" "$dmutag"
387 cvs_cmd libcfs libcfs "$libcfstag"
388 git_cmd spl spl "$spltag" "$git_base_url"
389 git_cmd zfs zfs-tmp "$zfstag" "$git_base_url"
390
391 [ -a ldiskfs/build ] || ln -sf ../build ldiskfs/build