Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
dCache
cta
Commits
00e9031c
Commit
00e9031c
authored
Mar 28, 2013
by
Sebastien Ponce
Browse files
Changed some default hardcoded values in the code to match the usages and castor.conf
parent
1fc9d80d
Changes
10
Hide whitespace changes
Inline
Side-by-side
castor/tape/tapebridge/Constants.hpp
View file @
00e9031c
...
...
@@ -134,7 +134,7 @@ namespace tapebridge {
* The value of this parameter defines the mode of flush behaviour used when
* writing data to tape.
*/
const
uint32_t
TAPEBRIDGE_TAPEFLUSHMODE
=
TAPEBRIDGE_
N
_FLUSH
ES
_PER_FILE
;
const
uint32_t
TAPEBRIDGE_TAPEFLUSHMODE
=
TAPEBRIDGE_
ONE
_FLUSH_PER_
N_
FILE
S
;
/**
* The compile-time default value of the tapebridged configuration parameter
...
...
@@ -149,7 +149,7 @@ namespace tapebridge {
* used over multiple files as defined by the parameter named
* TAPEBRIDGE/USEBUFFEREDTAPEMARKSOVERMULTIPLEFILES.
*/
const
uint64_t
TAPEBRIDGE_MAXBYTESBEFOREFLUSH
=
8589934592
ULL
;
//
8
G
i
B
const
uint64_t
TAPEBRIDGE_MAXBYTESBEFOREFLUSH
=
32000000000
ULL
;
//
32
GB
/**
* The compile-time default value of the tapebridged configuration parameter
...
...
@@ -162,7 +162,7 @@ namespace tapebridge {
* used over multiple files as defined by the parameter named
* TAPEBRIDGE/USEBUFFEREDTAPEMARKSOVERMULTIPLEFILES.
*/
const
uint64_t
TAPEBRIDGE_MAXFILESBEFOREFLUSH
=
1
;
const
uint64_t
TAPEBRIDGE_MAXFILESBEFOREFLUSH
=
200
;
/**
* When the tapegatewayd daemon is asked for a set of files to migrate to
...
...
debian/castor.conf
View file @
00e9031c
...
...
@@ -392,8 +392,8 @@ DiskManager migrWeight 10
# RFIO/RFIOD
#
RFIO
CONNTIMEOUT
10
# Timeout on the connect() system call
RFIO
CONRETRY
10
# Number of connection retry
RFIO
CONRETRYINT
1
# Number of second between every retry
RFIO
CONRETRY
3
# Number of connection retry
RFIO
CONRETRYINT
1
0
# Number of second between every retry
RFIO
DAEMONV3_RDSIZE
2097152
# Daemon buffer size for read
RFIO
DAEMONV3_WRSIZE
2097152
# Daemon buffer size for write
RFIO
DAEMONV3_RDMT_BUFSIZE
2097152
# Daemon buffer size for read in multithreaded mode
...
...
@@ -469,8 +469,8 @@ RFIOD LOGFILE /var/log/castor/rfiod.log
## Tape ########################################################################
ACCT
RTCOPY
YES
# Rtcopy accounting
ACCT
TAPE
YES
# Tape accounting
#
ACCT RTCOPY
NO
# Rtcopy accounting
#
ACCT TAPE
NO
# Tape accounting
#RMC PORT 5014 # TCP port for RMC daemon and client
# to work with (5014 is the default)
...
...
@@ -516,9 +516,9 @@ ACCT TAPE YES # Tape accounting
#ADMIN HOSTS host1 host2 ...
# Config the drive down in case of a tape alert (YES/NO). If the option is omitted,
# the default value (
YES
) will be used.
# the default value (
NO
) will be used.
#
TAPE
DOWN_ON_TPALERT
YES
#
TAPE DOWN_ON_TPALERT
NO
# Config the drive down in case of an unload failure (YES/NO). If the option is
# omitted, the default value (YES) will be used.
...
...
@@ -532,7 +532,7 @@ TAPE DOWN_ON_TPALERT YES
#
# If the option is omitted, the default value (CANCEL) will be used.
#
TAPE
BADMIR_HANDLING
REPAIR
#
TAPE BADMIR_HANDLING
CANCEL
# Let tape daemon confirm its idle state to VDQM at certain intervals (this is to
# cleanup inconsistencies where VDQM sees a drive busy, while tape daemon reports the
...
...
@@ -587,9 +587,9 @@ TAPE BADMIR_HANDLING REPAIR
# them can be specified (default values: 3 attempts, at a 60 seconds interval).
# After that the drive is put down.
#
TAPE
CRASHED_RLS_HANDLING
RETRY
#
TAPE CRASHED_RLS_HANDLING RETRY
#TAPE CRASHED_RLS_HANDLING_RETRIES 3
#TAPE CRASHED_RLS_HANDLING_RETRY_DELAY
6
0
#TAPE CRASHED_RLS_HANDLING_RETRY_DELAY
30
0
# Define the tape logging facility (relevant for tape daemon and rtcpd)
#
...
...
@@ -615,8 +615,8 @@ TAPE CRASHED_RLS_HANDLING RETRY
#
# <delay> is the delay between retry attempts in seconds
#
TAPE
ACS_MOUNT_LIBRARY_FAILURE_HANDLING
retry
1
300
TAPE
ACS_UNMOUNT_LIBRARY_FAILURE_HANDLING
retry
1
300
#
TAPE ACS_MOUNT_LIBRARY_FAILURE_HANDLING retry
3
300
#
TAPE ACS_UNMOUNT_LIBRARY_FAILURE_HANDLING retry
3
300
# Relax the blank tape checking (YES/NO).
#
...
...
h/rtcp_constants.h
View file @
00e9031c
...
...
@@ -223,7 +223,7 @@
#endif
/* NB_RTCP_BUFS */
#if !defined(RTCP_BUFS)
#define RTCP_BUFSZ (
4
* 1024 * 1024)
#define RTCP_BUFSZ (
5
* 1024 * 1024)
#endif
/* RTCP_BUFSZ */
#if !defined(RTCPC_PING_INTERVAL)
...
...
h/rtcp_server.h
View file @
00e9031c
...
...
@@ -168,7 +168,7 @@ typedef struct processing_status {
((__p = getconfent(#X,#Y,0)) != NULL) ) Z = atoi(__p); \
else Z = X##_##Y;}
#define RTCOPYD_MOUNT_TIME
60
*60
#define RTCOPYD_MOUNT_TIME
15
*60
#define RTCOPYD_POSITION_TIME 60*60
#define RTCOPYD_OPEN_TIME 5*60
#define RTCOPYD_READ_TIME 5*60
...
...
rtcopy/rtcp_accounting.c
View file @
00e9031c
...
...
@@ -42,7 +42,7 @@ int rtcp_wacct(int subtype,
char
*
getconfent
();
char
*
p
;
if
((
p
=
getconfent
(
"ACCT"
,
"RTCOPY"
,
0
))
=
=
NULL
||
if
((
p
=
getconfent
(
"ACCT"
,
"RTCOPY"
,
0
))
!
=
NULL
&&
(
strcmp
(
p
,
"YES"
)
!=
0
&&
strcmp
(
p
,
"yes"
))
!=
0
)
return
(
0
);
memset
((
char
*
)
&
acctrtcp
,
0
,
sizeof
(
struct
acctrtcp
));
acctrtcp
.
subtype
=
subtype
;
...
...
rtcopy/rtcpd_SelfMonitor.c
View file @
00e9031c
...
...
@@ -329,9 +329,10 @@ int rtcpd_StartMonitor(int pool_size) {
static
int
_pool_size
;
char
*
p
;
if
(
((
p
=
getenv
(
"RTCOPYD_SELF_MONITOR"
))
==
NULL
)
&&
((
p
=
getconfent
(
"RTCOPYD"
,
"SELF_MONITOR"
,
0
))
==
NULL
)
)
return
(
0
);
if
(
strcmp
(
p
,
"NO"
)
==
0
)
return
(
0
);
if
(
((
p
=
getenv
(
"RTCOPYD_SELF_MONITOR"
))
!=
NULL
)
||
((
p
=
getconfent
(
"RTCOPYD"
,
"SELF_MONITOR"
,
0
))
==
NULL
)
)
{
if
(
strcmp
(
p
,
"NO"
)
==
0
)
return
(
0
);
}
if
(
pool_size
>
0
)
_pool_size
=
pool_size
;
return
(
Cthread_create_detached
(
rtcpd_MonitorThread
,(
void
*
)
&
_pool_size
));
}
...
...
tape/rbtsubr.c
View file @
00e9031c
...
...
@@ -289,6 +289,11 @@ static int actionChanged(int cc, int rt, short *act, int *slp, int *rtr) {
if
(
*
slp
<
60
)
{
*
slp
=
60
;}
changed
=
1
;
}
}
else
{
*
act
=
RBT_FAST_RETRY
;
*
rtr
=
3
;
*
slp
=
300
;
changed
=
1
;
}
return
changed
;
}
...
...
tape/rlstape.c
View file @
00e9031c
...
...
@@ -121,9 +121,9 @@ int main(int argc,
"TPVID"
,
TL_MSG_PARAM_TPVID
,
vid
);
if
(
rlsflags
&
TPRLS_DELAY
)
{
int
slp
=
6
0
;
int
slp
=
30
0
;
if
((
p
=
getconfent
(
"TAPE"
,
"CRASHED_RLS_HANDLING_RETRY_DELAY"
,
0
)))
{
slp
=
atoi
(
p
)
>
0
?
atoi
(
p
)
:
6
0
;
slp
=
atoi
(
p
)
>
0
?
atoi
(
p
)
:
30
0
;
}
tplogit
(
func
,
"release delayed for %d seconds
\n
"
,
slp
);
tl_tpdaemon
.
tl_log
(
&
tl_tpdaemon
,
111
,
5
,
...
...
@@ -189,14 +189,13 @@ int main(int argc,
}
}
else
{
/* default: configure the drive down */
tplogit
(
func
,
"
Configur
e the drive
down
(default)
\n
"
);
tplogit
(
func
,
"
Leav
e the drive
up
(default)
\n
"
);
tl_tpdaemon
.
tl_log
(
&
tl_tpdaemon
,
103
,
5
,
"func"
,
TL_MSG_PARAM_STR
,
func
,
"Message"
,
TL_MSG_PARAM_STR
,
"
Configur
e the drive
down
(default)"
,
"Message"
,
TL_MSG_PARAM_STR
,
"
Leav
e the drive
up
(default)"
,
"JobID"
,
TL_MSG_PARAM_INT
,
jid
,
"vid"
,
TL_MSG_PARAM_STR
,
vid
,
"TPVID"
,
TL_MSG_PARAM_TPVID
,
vid
);
configdown
(
drive
);
}
}
...
...
@@ -286,7 +285,7 @@ unload_loop:
if
(
unldtape
(
tapefd
,
dvn
)
<
0
)
{
char
*
p
=
NULL
;
p
=
getconfent
(
"TAPE"
,
"DOWN_ON_UNLOAD_FAILURE"
,
0
);
if
((
NULL
!
=
p
)
&&
(
0
==
strcasecmp
(
p
,
"NO"
)))
{
if
((
NULL
=
=
p
)
||
(
0
==
strcasecmp
(
p
,
"NO"
)))
{
char
msg
[]
=
"Leave drive up after unload failure"
;
tplogit
(
func
,
"%s
\n
"
,
msg
);
tl_tpdaemon
.
tl_log
(
&
tl_tpdaemon
,
104
,
2
,
...
...
tape/tapeacct.c
View file @
00e9031c
...
...
@@ -24,7 +24,7 @@ int tapeacct(int subtype,
char
*
getconfent
();
char
*
p
;
if
((
p
=
getconfent
(
"ACCT"
,
"TAPE"
,
0
))
=
=
NULL
||
if
((
p
=
getconfent
(
"ACCT"
,
"TAPE"
,
0
))
!
=
NULL
&&
(
strcmp
(
p
,
"YES"
)
&&
strcmp
(
p
,
"yes"
)))
return
(
0
);
memset
((
char
*
)
&
accttape
,
0
,
sizeof
(
struct
accttape
));
accttape
.
subtype
=
subtype
;
...
...
tape/tpdaemon.c
View file @
00e9031c
...
...
@@ -375,7 +375,7 @@ int tpd_main() {
can take as long as (old) vdqmchkintvl seconds.
*/
p
=
getconfent
(
"TAPE"
,
"CONFIRM_DRIVE_FREE"
,
0
);
if
((
NULL
!
=
p
)
&&
(
0
==
strcasecmp
(
p
,
"YES"
)))
{
if
((
NULL
=
=
p
)
||
(
0
==
strcasecmp
(
p
,
"YES"
)))
{
p
=
getconfent
(
"TAPE"
,
"CONFIRM_DRIVE_FREE_INTVL"
,
0
);
if
(
NULL
!=
p
)
{
...
...
@@ -2770,9 +2770,8 @@ void check_child_exit()
"vid"
,
TL_MSG_PARAM_STR
,
tunp
->
vid
,
"TPVID"
,
TL_MSG_PARAM_TPVID
,
tunp
->
vid
);
p
=
getconfent
(
"TAPE"
,
"CRASHED_RLS_HANDLING"
,
0
);
if
(
NULL
!=
p
)
{
if
(
0
==
strcasecmp
(
p
,
"RETRY"
))
{
if
(
NULL
==
p
||
0
==
strcasecmp
(
p
,
"RETRY"
))
{
/*
** retry the release or ...
...
...
@@ -2897,17 +2896,6 @@ void check_child_exit()
"TPVID"
,
TL_MSG_PARAM_TPVID
,
tunp
->
vid
);
}
}
else
{
tplogit
(
func
,
"rlstape crashed, CRASHED_RLS_HANDLING not defined
\n
"
);
tl_tpdaemon
.
tl_log
(
&
tl_tpdaemon
,
103
,
5
,
"func"
,
TL_MSG_PARAM_STR
,
func
,
"Message"
,
TL_MSG_PARAM_STR
,
"rlstape crashed, CRASHED_RLS_HANDLING not defined"
,
"JobID"
,
TL_MSG_PARAM_INT
,
tunp
->
jid
,
"vid"
,
TL_MSG_PARAM_STR
,
tunp
->
vid
,
"TPVID"
,
TL_MSG_PARAM_TPVID
,
tunp
->
vid
);
}
}
else
{
tplogit
(
func
,
"rlstape process %d exited normally (jid %d)
\n
"
,
pid
,
tunp
->
jid
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment