This file is indexed.

/usr/include/afs/vldbint.h is in libopenafs-dev 1.6.15-1ubuntu1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  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
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
/* Machine generated file -- Do NOT edit */

#ifndef	_RXGEN_VLDBINT_
#define	_RXGEN_VLDBINT_

#ifdef	KERNEL
/* The following 'ifndefs' are not a good solution to the vendor's omission of surrounding all system includes with 'ifndef's since it requires that this file is included after the system includes...*/
#include <afsconfig.h>
#include "afs/param.h"
#ifdef	UKERNEL
#include "afs/sysincludes.h"
#include "rx/xdr.h"
#include "rx/rx.h"
#include "rx/rx_globals.h"
#include <ubik.h>
#else	/* UKERNEL */
#include "h/types.h"
#ifndef	SOCK_DGRAM  /* XXXXX */
#include "h/socket.h"
#endif
struct ubik_client;
#ifndef	DTYPE_SOCKET  /* XXXXX */
#ifndef AFS_LINUX22_ENV
#include "h/file.h"
#endif
#endif
#ifndef	S_IFMT  /* XXXXX */
#include "h/stat.h"
#endif
#if defined (AFS_OBSD_ENV) && !defined (MLEN)
#include "sys/mbuf.h"
#endif
#ifndef	IPPROTO_UDP /* XXXXX */
#include "netinet/in.h"
#endif
#ifndef	DST_USA  /* XXXXX */
#include "h/time.h"
#endif
#ifndef AFS_LINUX22_ENV
#include "rpc/types.h"
#endif /* AFS_LINUX22_ENV */
#ifndef	XDR_GETLONG /* XXXXX */
#ifdef AFS_LINUX22_ENV
#ifndef quad_t
#define quad_t __quad_t
#define u_quad_t __u_quad_t
#endif
#endif
#include "rx/xdr.h"
#endif /* XDR_GETLONG */
#endif   /* UKERNEL */
#include "afs/rxgen_consts.h"
#include "afs_osi.h"
#include "rx/rx.h"
#include "rx/rx_globals.h"
#else	/* KERNEL */
#include <afs/param.h>
#include <afs/stds.h>
#include <sys/types.h>
#include <rx/xdr.h>
#include <rx/rx.h>
#include <rx/rx_globals.h>
#include <afs/rxgen_consts.h>
#include <ubik.h>
#endif	/* KERNEL */

#ifdef AFS_NT40_ENV
#ifndef AFS_RXGEN_EXPORT
#define AFS_RXGEN_EXPORT __declspec(dllimport)
#endif /* AFS_RXGEN_EXPORT */
#else /* AFS_NT40_ENV */
#define AFS_RXGEN_EXPORT
#endif /* AFS_NT40_ENV */

#define VL_STATINDEX 15
#include <afs/vl_opcodes.h> /* directly to other places */
#ifdef KERNEL
#define afs_xdr_array(a,b,c,d,e,f) afs_xdr_arrayN(a,b,c,d,e,f)
#endif
#define VldbVersion "4"
#define VLDBVERSION_4 4
#define VLDBVERSION 3
#define OVLDBVERSION 2
#define VL_MAXNAMELEN 65
#define OMAXNSERVERS 8
#define NMAXNSERVERS 13
#define MAXTYPES 3

struct VldbUpdateEntry {
	afs_uint32 Mask;
	char name[VL_MAXNAMELEN];
	afs_int32 spares3;
	afs_int32 flags;
	afs_uint32 ReadOnlyId;
	afs_uint32 BackupId;
	afs_uint32 cloneId;
	afs_int32 nModifiedRepsites;
	afs_uint32 RepsitesMask[OMAXNSERVERS];
	afs_int32 RepsitesTargetServer[OMAXNSERVERS];
	afs_int32 RepsitesTargetPart[OMAXNSERVERS];
	afs_int32 RepsitesNewServer[OMAXNSERVERS];
	afs_int32 RepsitesNewPart[OMAXNSERVERS];
	afs_int32 RepsitesNewFlags[OMAXNSERVERS];
};
typedef struct VldbUpdateEntry VldbUpdateEntry;
bool_t xdr_VldbUpdateEntry(XDR *xdrs, VldbUpdateEntry *objp);

#define VLUPDATE_VOLUMENAME 0x0001
#define VLUPDATE_FLAGS 0x0004
#define VLUPDATE_READONLYID 0x0008
#define VLUPDATE_BACKUPID 0x0010
#define VLUPDATE_REPSITES 0x0020
#define VLUPDATE_CLONEID 0x0080
#define VLUPDATE_VOLNAMEHASH 0x0100
#define VLUPDATE_RWID 0x0200
#define VLUPDATE_REPS_DELETE 0x0100
#define VLUPDATE_REPS_ADD 0x0200
#define VLUPDATE_REPS_MODSERV 0x0400
#define VLUPDATE_REPS_MODPART 0x0800
#define VLUPDATE_REPS_MODFLAG 0x1000
#define VLSERVER_FLAG_UUID 0x0010
#define DEFAULTBULK 10000

typedef struct bulk {
	u_int bulk_len;
	char *bulk_val;
} bulk;
bool_t xdr_bulk(XDR *xdrs, bulk *objp);


struct VldbListByAttributes {
	afs_uint32 Mask;
	afs_int32 server;
	afs_int32 partition;
	afs_int32 spares3;
	afs_uint32 volumeid;
	afs_int32 flag;
};
typedef struct VldbListByAttributes VldbListByAttributes;
bool_t xdr_VldbListByAttributes(XDR *xdrs, VldbListByAttributes *objp);

#define VLLIST_SERVER 0x1
#define VLLIST_PARTITION 0x2
#define VLLIST_VOLUMEID 0x8
#define VLLIST_FLAG 0x10

struct vldbentry {
	char name[VL_MAXNAMELEN];
	afs_int32 spares3;
	afs_int32 nServers;
	afs_int32 serverNumber[OMAXNSERVERS];
	afs_int32 serverPartition[OMAXNSERVERS];
	afs_int32 serverFlags[OMAXNSERVERS];
	afs_uint32 volumeId[MAXTYPES];
	afs_uint32 cloneId;
	afs_int32 flags;
};
typedef struct vldbentry vldbentry;
bool_t xdr_vldbentry(XDR *xdrs, vldbentry *objp);


struct nvldbentry {
	char name[VL_MAXNAMELEN];
	afs_int32 nServers;
	afs_int32 serverNumber[NMAXNSERVERS];
	afs_int32 serverPartition[NMAXNSERVERS];
	afs_int32 serverFlags[NMAXNSERVERS];
	afs_uint32 volumeId[MAXTYPES];
	afs_uint32 cloneId;
	afs_int32 flags;
	afs_int32 matchindex;
	afs_int32 spares2;
	afs_int32 spares3;
	afs_int32 spares4;
	afs_int32 spares5;
	afs_int32 spares6;
	afs_int32 spares7;
	afs_int32 spares8;
	afs_int32 spares9;
};
typedef struct nvldbentry nvldbentry;
bool_t xdr_nvldbentry(XDR *xdrs, nvldbentry *objp);


struct ListAddrByAttributes {
	afs_int32 Mask;
	afs_uint32 ipaddr;
	afs_int32 index;
	afs_int32 spare1;
	afsUUID uuid;
};
typedef struct ListAddrByAttributes ListAddrByAttributes;
bool_t xdr_ListAddrByAttributes(XDR *xdrs, ListAddrByAttributes *objp);

#define VLADDR_IPADDR 0x1
#define VLADDR_INDEX 0x2
#define VLADDR_UUID 0x4

struct uvldbentry {
	char name[VL_MAXNAMELEN];
	afs_int32 nServers;
	afsUUID serverNumber[NMAXNSERVERS];
	afs_int32 serverUnique[NMAXNSERVERS];
	afs_int32 serverPartition[NMAXNSERVERS];
	afs_int32 serverFlags[NMAXNSERVERS];
	afs_uint32 volumeId[MAXTYPES];
	afs_uint32 cloneId;
	afs_int32 flags;
	afs_int32 matchindex;
	afs_int32 spares2;
	afs_int32 spares3;
	afs_int32 spares4;
	afs_int32 spares5;
	afs_int32 spares6;
	afs_int32 spares7;
	afs_int32 spares8;
	afs_int32 spares9;
};
typedef struct uvldbentry uvldbentry;
bool_t xdr_uvldbentry(XDR *xdrs, uvldbentry *objp);


struct vital_vlheader {
	afs_int32 vldbversion;
	afs_int32 headersize;
	afs_int32 freePtr;
	afs_int32 eofPtr;
	afs_int32 allocs;
	afs_int32 frees;
	afs_uint32 MaxVolumeId;
	afs_int32 totalEntries[MAXTYPES];
};
typedef struct vital_vlheader vital_vlheader;
bool_t xdr_vital_vlheader(XDR *xdrs, vital_vlheader *objp);

#define MAX_NUMBER_OPCODES 50

struct vldstats {
	afs_uint32 start_time;
	afs_int32 requests[MAX_NUMBER_OPCODES];
	afs_int32 aborts[MAX_NUMBER_OPCODES];
	afs_int32 reserved[5];
};
typedef struct vldstats vldstats;
bool_t xdr_vldstats(XDR *xdrs, vldstats *objp);

#define VLOP_MOVE 0x10
#define VLOP_RELEASE 0x20
#define VLOP_BACKUP 0x40
#define VLOP_DELETE 0x80
#define VLOP_DUMP 0x100
#define VLOP_ALLOPERS ( VLOP_MOVE | VLOP_RELEASE | VLOP_BACKUP | VLOP_DELETE | VLOP_DUMP)
#define VLF_RWEXISTS 0x1000 /* flags for whole vldb entry */
#define VLF_ROEXISTS 0x2000
#define VLF_BACKEXISTS 0x4000
#define VLF_DFSFILESET 0x8000 /* Volume is really DFS fileset */
#define VLSF_NEWREPSITE 0x01 /* flags for indiv. server entry */
#define VLSF_ROVOL 0x02
#define VLSF_RWVOL 0x04
#define VLSF_BACKVOL 0x08
#define VLSF_DONTUSE 0x20 /* no conflict with VLSERVER_FLAG_UUID */

typedef struct bulkentries {
	u_int bulkentries_len;
	vldbentry *bulkentries_val;
} bulkentries;
bool_t xdr_bulkentries(XDR *xdrs, bulkentries *objp);


typedef struct nbulkentries {
	u_int nbulkentries_len;
	nvldbentry *nbulkentries_val;
} nbulkentries;
bool_t xdr_nbulkentries(XDR *xdrs, nbulkentries *objp);


typedef struct ubulkentries {
	u_int ubulkentries_len;
	uvldbentry *ubulkentries_val;
} ubulkentries;
bool_t xdr_ubulkentries(XDR *xdrs, ubulkentries *objp);


typedef struct bulkaddrs {
	u_int bulkaddrs_len;
	afs_uint32 *bulkaddrs_val;
} bulkaddrs;
bool_t xdr_bulkaddrs(XDR *xdrs, bulkaddrs *objp);


struct VLCallBack {
	afs_uint32 CallBackVersion;
	afs_uint32 ExpirationTime;
	afs_uint32 CallBackType;
	afs_uint32 Handle;
};
typedef struct VLCallBack VLCallBack;
bool_t xdr_VLCallBack(XDR *xdrs, VLCallBack *objp);


#include <rx/rx_multi.h>
#define multi_VL_ProbeServer() \
	multi_Body(StartVL_ProbeServer(multi_call), EndVL_ProbeServer(multi_call))


extern int StartVL_ProbeServer(
	/*IN */ struct rx_call *z_call);

extern int EndVL_ProbeServer(
	/*IN */ struct rx_call *z_call);

extern int VL_ProbeServer(
	/*IN */ struct rx_connection *z_conn);

extern int ubik_VL_ProbeServer(
	struct ubik_client *aclient, afs_int32 aflags);

extern afs_int32 SVL_ProbeServer(
	/*IN */ struct rx_call *z_call);

extern int VL_GetEntryByNameO(
	/*IN */ struct rx_connection *z_conn,
	/*IN */ char * volumename,
	/*OUT*/ vldbentry * entry);

extern int ubik_VL_GetEntryByNameO(
	struct ubik_client *aclient, afs_int32 aflags,
	/*IN */ char * volumename,
	/*OUT*/ vldbentry * entry);

extern afs_int32 SVL_GetEntryByNameO(
	/*IN */ struct rx_call *z_call,
	/*IN */ char * volumename,
	/*OUT*/ vldbentry * entry);

extern int VL_GetEntryByNameN(
	/*IN */ struct rx_connection *z_conn,
	/*IN */ char * volumename,
	/*OUT*/ nvldbentry * entry);

extern int ubik_VL_GetEntryByNameN(
	struct ubik_client *aclient, afs_int32 aflags,
	/*IN */ char * volumename,
	/*OUT*/ nvldbentry * entry);

extern afs_int32 SVL_GetEntryByNameN(
	/*IN */ struct rx_call *z_call,
	/*IN */ char * volumename,
	/*OUT*/ nvldbentry * entry);

extern int VL_GetEntryByNameU(
	/*IN */ struct rx_connection *z_conn,
	/*IN */ char * volumename,
	/*OUT*/ uvldbentry * entry);

extern int ubik_VL_GetEntryByNameU(
	struct ubik_client *aclient, afs_int32 aflags,
	/*IN */ char * volumename,
	/*OUT*/ uvldbentry * entry);

extern afs_int32 SVL_GetEntryByNameU(
	/*IN */ struct rx_call *z_call,
	/*IN */ char * volumename,
	/*OUT*/ uvldbentry * entry);

extern int VL_GetAddrsU(
	/*IN */ struct rx_connection *z_conn,
	/*IN */ ListAddrByAttributes * inaddr,
	/*OUT*/ afsUUID * uuidp1,
	/*OUT*/ afs_int32 * uniquifier,
	/*OUT*/ afs_int32 * nentries,
	/*OUT*/ bulkaddrs * blkaddrs);

extern int ubik_VL_GetAddrsU(
	struct ubik_client *aclient, afs_int32 aflags,
	/*IN */ ListAddrByAttributes * inaddr,
	/*OUT*/ afsUUID * uuidp1,
	/*OUT*/ afs_int32 * uniquifier,
	/*OUT*/ afs_int32 * nentries,
	/*OUT*/ bulkaddrs * blkaddrs);

extern afs_int32 SVL_GetAddrsU(
	/*IN */ struct rx_call *z_call,
	/*IN */ ListAddrByAttributes * inaddr,
	/*OUT*/ afsUUID * uuidp1,
	/*OUT*/ afs_int32 * uniquifier,
	/*OUT*/ afs_int32 * nentries,
	/*OUT*/ bulkaddrs * blkaddrs);
#if !defined(KERNEL)

typedef struct single_vldbentry *vldblist;
bool_t xdr_vldblist(XDR *xdrs, vldblist *objp);


struct single_vldbentry {
	vldbentry VldbEntry;
	vldblist next_vldb;
};
typedef struct single_vldbentry single_vldbentry;
bool_t xdr_single_vldbentry(XDR *xdrs, single_vldbentry *objp);


struct vldb_list {
	vldblist node;
};
typedef struct vldb_list vldb_list;
bool_t xdr_vldb_list(XDR *xdrs, vldb_list *objp);


typedef struct single_nvldbentry *nvldblist;
bool_t xdr_nvldblist(XDR *xdrs, nvldblist *objp);


struct single_nvldbentry {
	nvldbentry VldbEntry;
	nvldblist next_vldb;
};
typedef struct single_nvldbentry single_nvldbentry;
bool_t xdr_single_nvldbentry(XDR *xdrs, single_nvldbentry *objp);


struct nvldb_list {
	nvldblist node;
};
typedef struct nvldb_list nvldb_list;
bool_t xdr_nvldb_list(XDR *xdrs, nvldb_list *objp);


extern int VL_CreateEntry(
	/*IN */ struct rx_connection *z_conn,
	/*IN */ vldbentry * newentry);

extern int ubik_VL_CreateEntry(
	struct ubik_client *aclient, afs_int32 aflags,
	/*IN */ vldbentry * newentry);

extern afs_int32 SVL_CreateEntry(
	/*IN */ struct rx_call *z_call,
	/*IN */ vldbentry * newentry);

extern int VL_DeleteEntry(
	/*IN */ struct rx_connection *z_conn,
	/*IN */ afs_uint32 Volid,
	/*IN */ afs_int32 voltype);

extern int ubik_VL_DeleteEntry(
	struct ubik_client *aclient, afs_int32 aflags,
	/*IN */ afs_uint32 Volid,
	/*IN */ afs_int32 voltype);

extern afs_int32 SVL_DeleteEntry(
	/*IN */ struct rx_call *z_call,
	/*IN */ afs_uint32 Volid,
	/*IN */ afs_int32 voltype);

extern int VL_GetEntryByID(
	/*IN */ struct rx_connection *z_conn,
	/*IN */ afs_uint32 Volid,
	/*IN */ afs_int32 voltype,
	/*OUT*/ vldbentry * entry);

extern int ubik_VL_GetEntryByID(
	struct ubik_client *aclient, afs_int32 aflags,
	/*IN */ afs_uint32 Volid,
	/*IN */ afs_int32 voltype,
	/*OUT*/ vldbentry * entry);

extern afs_int32 SVL_GetEntryByID(
	/*IN */ struct rx_call *z_call,
	/*IN */ afs_uint32 Volid,
	/*IN */ afs_int32 voltype,
	/*OUT*/ vldbentry * entry);

extern int VL_GetNewVolumeId(
	/*IN */ struct rx_connection *z_conn,
	/*IN */ afs_uint32 bumpcount,
	/*OUT*/ afs_uint32 * newvolumid);

extern int ubik_VL_GetNewVolumeId(
	struct ubik_client *aclient, afs_int32 aflags,
	/*IN */ afs_uint32 bumpcount,
	/*OUT*/ afs_uint32 * newvolumid);

extern afs_int32 SVL_GetNewVolumeId(
	/*IN */ struct rx_call *z_call,
	/*IN */ afs_uint32 bumpcount,
	/*OUT*/ afs_uint32 * newvolumid);

extern int VL_ReplaceEntry(
	/*IN */ struct rx_connection *z_conn,
	/*IN */ afs_uint32 Volid,
	/*IN */ afs_int32 voltype,
	/*IN */ vldbentry * newentry,
	/*IN */ afs_int32 ReleaseType);

extern int ubik_VL_ReplaceEntry(
	struct ubik_client *aclient, afs_int32 aflags,
	/*IN */ afs_uint32 Volid,
	/*IN */ afs_int32 voltype,
	/*IN */ vldbentry * newentry,
	/*IN */ afs_int32 ReleaseType);

extern afs_int32 SVL_ReplaceEntry(
	/*IN */ struct rx_call *z_call,
	/*IN */ afs_uint32 Volid,
	/*IN */ afs_int32 voltype,
	/*IN */ vldbentry * newentry,
	/*IN */ afs_int32 ReleaseType);

extern int VL_UpdateEntry(
	/*IN */ struct rx_connection *z_conn,
	/*IN */ afs_uint32 Volid,
	/*IN */ afs_int32 voltype,
	/*IN */ VldbUpdateEntry * UpdateEntry,
	/*IN */ afs_int32 ReleaseType);

extern int ubik_VL_UpdateEntry(
	struct ubik_client *aclient, afs_int32 aflags,
	/*IN */ afs_uint32 Volid,
	/*IN */ afs_int32 voltype,
	/*IN */ VldbUpdateEntry * UpdateEntry,
	/*IN */ afs_int32 ReleaseType);

extern afs_int32 SVL_UpdateEntry(
	/*IN */ struct rx_call *z_call,
	/*IN */ afs_uint32 Volid,
	/*IN */ afs_int32 voltype,
	/*IN */ VldbUpdateEntry * UpdateEntry,
	/*IN */ afs_int32 ReleaseType);

extern int VL_SetLock(
	/*IN */ struct rx_connection *z_conn,
	/*IN */ afs_uint32 Volid,
	/*IN */ afs_int32 voltype,
	/*IN */ afs_int32 voloper);

extern int ubik_VL_SetLock(
	struct ubik_client *aclient, afs_int32 aflags,
	/*IN */ afs_uint32 Volid,
	/*IN */ afs_int32 voltype,
	/*IN */ afs_int32 voloper);

extern afs_int32 SVL_SetLock(
	/*IN */ struct rx_call *z_call,
	/*IN */ afs_uint32 Volid,
	/*IN */ afs_int32 voltype,
	/*IN */ afs_int32 voloper);

extern int VL_ReleaseLock(
	/*IN */ struct rx_connection *z_conn,
	/*IN */ afs_uint32 Volid,
	/*IN */ afs_int32 voltype,
	/*IN */ afs_int32 ReleaseType);

extern int ubik_VL_ReleaseLock(
	struct ubik_client *aclient, afs_int32 aflags,
	/*IN */ afs_uint32 Volid,
	/*IN */ afs_int32 voltype,
	/*IN */ afs_int32 ReleaseType);

extern afs_int32 SVL_ReleaseLock(
	/*IN */ struct rx_call *z_call,
	/*IN */ afs_uint32 Volid,
	/*IN */ afs_int32 voltype,
	/*IN */ afs_int32 ReleaseType);

extern int VL_ListEntry(
	/*IN */ struct rx_connection *z_conn,
	/*IN */ afs_int32 previous_index,
	/*OUT*/ afs_int32 * count,
	/*OUT*/ afs_int32 * next_index,
	/*OUT*/ vldbentry * entry);

extern int ubik_VL_ListEntry(
	struct ubik_client *aclient, afs_int32 aflags,
	/*IN */ afs_int32 previous_index,
	/*OUT*/ afs_int32 * count,
	/*OUT*/ afs_int32 * next_index,
	/*OUT*/ vldbentry * entry);

extern afs_int32 SVL_ListEntry(
	/*IN */ struct rx_call *z_call,
	/*IN */ afs_int32 previous_index,
	/*OUT*/ afs_int32 * count,
	/*OUT*/ afs_int32 * next_index,
	/*OUT*/ vldbentry * entry);

extern int VL_ListAttributes(
	/*IN */ struct rx_connection *z_conn,
	/*IN */ VldbListByAttributes * attributes,
	/*OUT*/ afs_int32 * nentries,
	/*OUT*/ bulkentries * blkentries);

extern int ubik_VL_ListAttributes(
	struct ubik_client *aclient, afs_int32 aflags,
	/*IN */ VldbListByAttributes * attributes,
	/*OUT*/ afs_int32 * nentries,
	/*OUT*/ bulkentries * blkentries);

extern afs_int32 SVL_ListAttributes(
	/*IN */ struct rx_call *z_call,
	/*IN */ VldbListByAttributes * attributes,
	/*OUT*/ afs_int32 * nentries,
	/*OUT*/ bulkentries * blkentries);

extern int VL_LinkedList(
	/*IN */ struct rx_connection *z_conn,
	/*IN */ VldbListByAttributes * attributes,
	/*OUT*/ afs_int32 * nentries,
	/*OUT*/ vldb_list * linkedentries);

extern int ubik_VL_LinkedList(
	struct ubik_client *aclient, afs_int32 aflags,
	/*IN */ VldbListByAttributes * attributes,
	/*OUT*/ afs_int32 * nentries,
	/*OUT*/ vldb_list * linkedentries);

extern afs_int32 SVL_LinkedList(
	/*IN */ struct rx_call *z_call,
	/*IN */ VldbListByAttributes * attributes,
	/*OUT*/ afs_int32 * nentries,
	/*OUT*/ vldb_list * linkedentries);

extern int VL_GetStats(
	/*IN */ struct rx_connection *z_conn,
	/*OUT*/ vldstats * stats,
	/*OUT*/ vital_vlheader * vital_header);

extern int ubik_VL_GetStats(
	struct ubik_client *aclient, afs_int32 aflags,
	/*OUT*/ vldstats * stats,
	/*OUT*/ vital_vlheader * vital_header);

extern afs_int32 SVL_GetStats(
	/*IN */ struct rx_call *z_call,
	/*OUT*/ vldstats * stats,
	/*OUT*/ vital_vlheader * vital_header);

extern int VL_GetAddrs(
	/*IN */ struct rx_connection *z_conn,
	/*IN */ afs_int32 Handle,
	/*IN */ afs_int32 spare2,
	/*OUT*/ VLCallBack * spare3,
	/*OUT*/ afs_int32 * nentries,
	/*OUT*/ bulkaddrs * blkaddrs);

extern int ubik_VL_GetAddrs(
	struct ubik_client *aclient, afs_int32 aflags,
	/*IN */ afs_int32 Handle,
	/*IN */ afs_int32 spare2,
	/*OUT*/ VLCallBack * spare3,
	/*OUT*/ afs_int32 * nentries,
	/*OUT*/ bulkaddrs * blkaddrs);

extern afs_int32 SVL_GetAddrs(
	/*IN */ struct rx_call *z_call,
	/*IN */ afs_int32 Handle,
	/*IN */ afs_int32 spare2,
	/*OUT*/ VLCallBack * spare3,
	/*OUT*/ afs_int32 * nentries,
	/*OUT*/ bulkaddrs * blkaddrs);

extern int VL_ChangeAddr(
	/*IN */ struct rx_connection *z_conn,
	/*IN */ afs_uint32 ip1,
	/*IN */ afs_uint32 ip2);

extern int ubik_VL_ChangeAddr(
	struct ubik_client *aclient, afs_int32 aflags,
	/*IN */ afs_uint32 ip1,
	/*IN */ afs_uint32 ip2);

extern afs_int32 SVL_ChangeAddr(
	/*IN */ struct rx_call *z_call,
	/*IN */ afs_uint32 ip1,
	/*IN */ afs_uint32 ip2);

extern int VL_CreateEntryN(
	/*IN */ struct rx_connection *z_conn,
	/*IN */ nvldbentry * newentry);

extern int ubik_VL_CreateEntryN(
	struct ubik_client *aclient, afs_int32 aflags,
	/*IN */ nvldbentry * newentry);

extern afs_int32 SVL_CreateEntryN(
	/*IN */ struct rx_call *z_call,
	/*IN */ nvldbentry * newentry);

extern int VL_GetEntryByIDN(
	/*IN */ struct rx_connection *z_conn,
	/*IN */ afs_uint32 Volid,
	/*IN */ afs_int32 voltype,
	/*OUT*/ nvldbentry * entry);

extern int ubik_VL_GetEntryByIDN(
	struct ubik_client *aclient, afs_int32 aflags,
	/*IN */ afs_uint32 Volid,
	/*IN */ afs_int32 voltype,
	/*OUT*/ nvldbentry * entry);

extern afs_int32 SVL_GetEntryByIDN(
	/*IN */ struct rx_call *z_call,
	/*IN */ afs_uint32 Volid,
	/*IN */ afs_int32 voltype,
	/*OUT*/ nvldbentry * entry);

extern int VL_ReplaceEntryN(
	/*IN */ struct rx_connection *z_conn,
	/*IN */ afs_uint32 Volid,
	/*IN */ afs_int32 voltype,
	/*IN */ nvldbentry * newentry,
	/*IN */ afs_int32 ReleaseType);

extern int ubik_VL_ReplaceEntryN(
	struct ubik_client *aclient, afs_int32 aflags,
	/*IN */ afs_uint32 Volid,
	/*IN */ afs_int32 voltype,
	/*IN */ nvldbentry * newentry,
	/*IN */ afs_int32 ReleaseType);

extern afs_int32 SVL_ReplaceEntryN(
	/*IN */ struct rx_call *z_call,
	/*IN */ afs_uint32 Volid,
	/*IN */ afs_int32 voltype,
	/*IN */ nvldbentry * newentry,
	/*IN */ afs_int32 ReleaseType);

extern int VL_ListEntryN(
	/*IN */ struct rx_connection *z_conn,
	/*IN */ afs_int32 previous_index,
	/*OUT*/ afs_int32 * count,
	/*OUT*/ afs_int32 * next_index,
	/*OUT*/ nvldbentry * entry);

extern int ubik_VL_ListEntryN(
	struct ubik_client *aclient, afs_int32 aflags,
	/*IN */ afs_int32 previous_index,
	/*OUT*/ afs_int32 * count,
	/*OUT*/ afs_int32 * next_index,
	/*OUT*/ nvldbentry * entry);

extern afs_int32 SVL_ListEntryN(
	/*IN */ struct rx_call *z_call,
	/*IN */ afs_int32 previous_index,
	/*OUT*/ afs_int32 * count,
	/*OUT*/ afs_int32 * next_index,
	/*OUT*/ nvldbentry * entry);

extern int VL_ListAttributesN(
	/*IN */ struct rx_connection *z_conn,
	/*IN */ VldbListByAttributes * attributes,
	/*OUT*/ afs_int32 * nentries,
	/*OUT*/ nbulkentries * blkentries);

extern int ubik_VL_ListAttributesN(
	struct ubik_client *aclient, afs_int32 aflags,
	/*IN */ VldbListByAttributes * attributes,
	/*OUT*/ afs_int32 * nentries,
	/*OUT*/ nbulkentries * blkentries);

extern afs_int32 SVL_ListAttributesN(
	/*IN */ struct rx_call *z_call,
	/*IN */ VldbListByAttributes * attributes,
	/*OUT*/ afs_int32 * nentries,
	/*OUT*/ nbulkentries * blkentries);

extern int VL_LinkedListN(
	/*IN */ struct rx_connection *z_conn,
	/*IN */ VldbListByAttributes * attributes,
	/*OUT*/ afs_int32 * nentries,
	/*OUT*/ nvldb_list * linkedentries);

extern int ubik_VL_LinkedListN(
	struct ubik_client *aclient, afs_int32 aflags,
	/*IN */ VldbListByAttributes * attributes,
	/*OUT*/ afs_int32 * nentries,
	/*OUT*/ nvldb_list * linkedentries);

extern afs_int32 SVL_LinkedListN(
	/*IN */ struct rx_call *z_call,
	/*IN */ VldbListByAttributes * attributes,
	/*OUT*/ afs_int32 * nentries,
	/*OUT*/ nvldb_list * linkedentries);

extern int VL_UpdateEntryByName(
	/*IN */ struct rx_connection *z_conn,
	/*IN */ char * volumename,
	/*IN */ VldbUpdateEntry * UpdateEntry,
	/*IN */ afs_int32 ReleaseType);

extern int ubik_VL_UpdateEntryByName(
	struct ubik_client *aclient, afs_int32 aflags,
	/*IN */ char * volumename,
	/*IN */ VldbUpdateEntry * UpdateEntry,
	/*IN */ afs_int32 ReleaseType);

extern afs_int32 SVL_UpdateEntryByName(
	/*IN */ struct rx_call *z_call,
	/*IN */ char * volumename,
	/*IN */ VldbUpdateEntry * UpdateEntry,
	/*IN */ afs_int32 ReleaseType);

extern int VL_RegisterAddrs(
	/*IN */ struct rx_connection *z_conn,
	/*IN */ afsUUID * uuidp,
	/*IN */ afs_int32 spare1,
	/*IN */ bulkaddrs * ipaddr);

extern int ubik_VL_RegisterAddrs(
	struct ubik_client *aclient, afs_int32 aflags,
	/*IN */ afsUUID * uuidp,
	/*IN */ afs_int32 spare1,
	/*IN */ bulkaddrs * ipaddr);

extern afs_int32 SVL_RegisterAddrs(
	/*IN */ struct rx_call *z_call,
	/*IN */ afsUUID * uuidp,
	/*IN */ afs_int32 spare1,
	/*IN */ bulkaddrs * ipaddr);

extern int VL_ListAttributesN2(
	/*IN */ struct rx_connection *z_conn,
	/*IN */ VldbListByAttributes * attributes,
	/*IN */ char * volumename,
	/*IN */ afs_int32 startindex,
	/*OUT*/ afs_int32 * nentries,
	/*OUT*/ nbulkentries * blkentries,
	/*OUT*/ afs_int32 * nextstartindex);

extern int ubik_VL_ListAttributesN2(
	struct ubik_client *aclient, afs_int32 aflags,
	/*IN */ VldbListByAttributes * attributes,
	/*IN */ char * volumename,
	/*IN */ afs_int32 startindex,
	/*OUT*/ afs_int32 * nentries,
	/*OUT*/ nbulkentries * blkentries,
	/*OUT*/ afs_int32 * nextstartindex);

extern afs_int32 SVL_ListAttributesN2(
	/*IN */ struct rx_call *z_call,
	/*IN */ VldbListByAttributes * attributes,
	/*IN */ char * volumename,
	/*IN */ afs_int32 startindex,
	/*OUT*/ afs_int32 * nentries,
	/*OUT*/ nbulkentries * blkentries,
	/*OUT*/ afs_int32 * nextstartindex);
#endif /* !defined(KERNEL) */

extern int VL_ExecuteRequest(struct rx_call *);

/* Opcode-related useful stats for package: VL_ */
#define VL_LOWEST_OPCODE   501
#define VL_HIGHEST_OPCODE	534
#define VL_NUMBER_OPCODES	28

#define VL_NO_OF_STAT_FUNCS	28

AFS_RXGEN_EXPORT
extern const char *VL_function_names[];

#endif	/* _RXGEN_VLDBINT_ */