Castor_limits.h 3.94 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
/*
 * Castor_limits.h,v 1.27 2004/02/12 15:38:08 obarring Exp
 */

/*
 * Copyright (C) 1999-2003 by CERN/IT/PDP/DM
 * All rights reserved
 */

/*
 * @(#)Castor_limits.h,v 1.27 2004/02/12 15:38:08 CERN IT-PDP/DM Jean-Philippe Baud
 */

14
#pragma once
15
16
17

	/* all maximum lengths defined below do not include the trailing null */

18
#define CA_MAXACLENTRIES 300	/* maximum number of ACL entries for a file/dir */
19
20
21
22
23
24
25
26
27
#define CA_MAXCLASNAMELEN 15	/* maximum length for a fileclass name */
#define	CA_MAXCOMMENTLEN 255	/* maximum length for user comments in metadata */
#define	CA_MAXDENLEN       8	/* maximum length for a alphanumeric density */
#define	CA_MAXDGNLEN       6	/* maximum length for a device group name */
#define CA_MAXDVNLEN      63	/* maximum length for a device name */
#define	CA_MAXDVTLEN       8	/* maximum length for a device type */
#define	CA_MAXFIDLEN      17	/* maximum length for a fid (DSN) */
#define	CA_MAXFSEQLEN     14	/* maximum length for a fseq string */
#define	CA_MAXGRPNAMELEN   2	/* maximum length for a group name */
28
#define	CA_MAXGUIDLEN     36	/* maximum length for a guid */
29
#define CA_MAXHOSTNAMELEN 63	/* maximum length for a hostname */
30
#define CA_MAXSVCCLASSNAMELEN 63	/* maximum length for a svc class name */
31
32
33
34
35
36
37
#define	CA_MAXLBLTYPLEN    3	/* maximum length for a label type */
#define CA_MAXLINELEN   1023	/* maximum length for a line in a log */
#define	CA_MAXMANUFLEN    12	/* maximum length for a cartridge manufacturer */
#define	CA_MAXMIGPNAMELEN 15	/* maximum length for a migration policy name */
#define	CA_MAXMIGRNAMELEN 15	/* maximum length for a migrator name */
#define	CA_MAXMLLEN        1	/* maximum length for a cartridge media_letter */
#define	CA_MAXMODELLEN     6	/* maximum length for a cartridge model */
38
#define	CA_MAXNAMELEN    255	/* maximum length for a pathname component */
Daniele Kruse's avatar
Daniele Kruse committed
39
#define	CA_MAXNBDRIVES     4	/* maximum number of tape drives per server */
40
41
#define	CA_MAXPATHLEN   1023	/* maximum length for a pathname */
#define CA_MAXPOOLNAMELEN 15	/* maximum length for a pool name */
42
#define CA_MAXPROTOLEN     7	/* maximum length for a protocol name */
43
44
45
#define	CA_MAXRBTNAMELEN  17	/* maximum length for a robot name */
#define	CA_MAXRECFMLEN     3	/* maximum length for a record format */
#define CA_MAXREGEXPLEN   63    /* Maximum length for a regular expression */
46
47
48
#define CA_MAXCSECNAMELEN 512	/* Maximum length for a Csec authorization id */
#define CA_MAXCSECPROTOLEN 20	/* Maximum length for a Csec mechanism */
#define	CA_MAXSFNLEN    1103	/* maximum length for a replica */
49
50
51
52
53
54
#define CA_MAXSHORTHOSTLEN 10	/* maximum length for a hostname without domain */
#define	CA_MAXSNLEN       24	/* maximum length for a cartridge serial nb */
#define	CA_MAXSTGRIDLEN   77	/* maximum length for a stager full request id */
				/* must be >= nb digits in CA_MAXSTGREQID +
				   CA_MAXHOSTNAMELEN + 8 */
#define	CA_MAXSTGREQID 999999	/* maximum value for a stager request id */
55
#define	CA_MAXSYMLINKS     5	/* maximum number of symbolic links */
56
57
58
59
60
61
#define	CA_MAXTAGLEN     255	/* maximum length for a volume tag */
#define	CA_MAXTAPELIBLEN   8	/* maximum length for a tape library name */
#define	CA_MAXUNMLEN       8	/* maximum length for a drive name */
#define	CA_MAXUSRNAMELEN  14	/* maximum length for a login name */
#define	CA_MAXVIDLEN       6	/* maximum length for a VID */
#define	CA_MAXVSNLEN       6	/* maximum length for a VSN */
62
#define CA_MAXCKSUMNAMELEN 15   /* maximum length for a checksum algorithm name */
63
#define CA_MAXCKSUMLEN     32   /* maximum length for a checksum value in an asci form */
64
#define CA_MAXDMPROTNAMELEN 15  /* maximum length for Disk Mover protocol name */
Benjamin Couturier's avatar
Benjamin Couturier committed
65
#define CA_MAXJOBIDLEN     36   /* Maximum length for the representation of the Cuuid */
66
67
#define CA_MAXUSERTAGLEN    63  /* Maximum length for a user tag (stage request) */
#define CA_MAXRFSLINELEN 2047   /* maximum length for the requested filesystem string */
68

69
70
71
/* Max allowed uid/gif */
#define CA_MAXUID    0x7FFFFFFF /* Maximum uid */
#define CA_MAXGID    0x7FFFFFFF /* Maximum gid */