Commit d31bfc17 authored by Eric Cano's avatar Eric Cano
Browse files

Catching up with master branch

parents c99f92e5 b5872de8
......@@ -407,6 +407,7 @@ if (${COMPILE_SERVER} STREQUAL "1")
PERMISSIONS ${CASTOR_HEADER_PERMS})
install(FILES
exception/AlreadyInitialized.hpp
exception/InvalidArgument.hpp
exception/NoEntry.hpp
exception/OutOfMemory.hpp
......
......@@ -354,6 +354,7 @@ InstallNonExecFile(db/cnv/DbBaseCnv.hpp,$(BUILDHEADERSDIRHPP)/db/cnv,644)
InstallNonExecFile(db/ora/OraCnvSvc.hpp,$(BUILDHEADERSDIRHPP)/db/ora,644)
InstallNonExecFile(db/ora/OraCommonSvc.hpp,$(BUILDHEADERSDIRHPP)/db/ora,644)
InstallNonExecFile(exception/AlreadyInitialized.hpp,$(BUILDHEADERSDIRHPP)/exception,644)
InstallNonExecFile(exception/InvalidArgument.hpp,$(BUILDHEADERSDIRHPP)/exception,644)
InstallNonExecFile(exception/InvalidNbArguments.hpp,$(BUILDHEADERSDIRHPP)/exception,644)
InstallNonExecFile(exception/NoEntry.hpp,$(BUILDHEADERSDIRHPP)/exception,644)
......
......@@ -581,7 +581,7 @@ END;
/
ALTER TABLE RecallJob
ADD CONSTRAINT CK_RecallJob_Status
CHECK (status IN (1, 2, 3));
CHECK (status IN (1, 2, 3, 4));
/* Definition of the TapePool table
* name : the name of the TapePool
......
......@@ -29,40 +29,41 @@
CREATE OR REPLACE PACKAGE tconst
AS
-- TPMODE
WRITE_DISABLE CONSTANT PLS_INTEGER := 0;
WRITE_ENABLE CONSTANT PLS_INTEGER := 1;
WRITE_DISABLE CONSTANT PLS_INTEGER := 0;
WRITE_ENABLE CONSTANT PLS_INTEGER := 1;
RECALLMOUNT_NEW CONSTANT PLS_INTEGER := 0;
RECALLMOUNT_WAITDRIVE CONSTANT PLS_INTEGER := 1;
RECALLMOUNT_RECALLING CONSTANT PLS_INTEGER := 2;
RECALLMOUNT_NEW CONSTANT PLS_INTEGER := 0;
RECALLMOUNT_WAITDRIVE CONSTANT PLS_INTEGER := 1;
RECALLMOUNT_RECALLING CONSTANT PLS_INTEGER := 2;
RECALLJOB_PENDING CONSTANT PLS_INTEGER := 1;
RECALLJOB_SELECTED CONSTANT PLS_INTEGER := 2;
RECALLJOB_RETRYMOUNT CONSTANT PLS_INTEGER := 3;
RECALLJOB_PENDING CONSTANT PLS_INTEGER := 1;
RECALLJOB_SELECTED CONSTANT PLS_INTEGER := 2;
RECALLJOB_RETRYMOUNT CONSTANT PLS_INTEGER := 3;
RECALLJOB_SELECTED2NDCOPY CONSTANT PLS_INTEGER := 4;
MIGRATIONMOUNT_WAITTAPE CONSTANT PLS_INTEGER := 0;
MIGRATIONMOUNT_SEND_TO_VDQM CONSTANT PLS_INTEGER := 1;
MIGRATIONMOUNT_WAITDRIVE CONSTANT PLS_INTEGER := 2;
MIGRATIONMOUNT_MIGRATING CONSTANT PLS_INTEGER := 3;
MIGRATIONMOUNT_WAITTAPE CONSTANT PLS_INTEGER := 0;
MIGRATIONMOUNT_SEND_TO_VDQM CONSTANT PLS_INTEGER := 1;
MIGRATIONMOUNT_WAITDRIVE CONSTANT PLS_INTEGER := 2;
MIGRATIONMOUNT_MIGRATING CONSTANT PLS_INTEGER := 3;
MIGRATIONJOB_PENDING CONSTANT PLS_INTEGER := 0;
MIGRATIONJOB_SELECTED CONSTANT PLS_INTEGER := 1;
MIGRATIONJOB_PENDING CONSTANT PLS_INTEGER := 0;
MIGRATIONJOB_SELECTED CONSTANT PLS_INTEGER := 1;
MIGRATIONJOB_WAITINGONRECALL CONSTANT PLS_INTEGER := 3;
REPACK_SUBMITTED CONSTANT PLS_INTEGER := 6;
REPACK_STARTING CONSTANT PLS_INTEGER := 0;
REPACK_ONGOING CONSTANT PLS_INTEGER := 1;
REPACK_FINISHED CONSTANT PLS_INTEGER := 2;
REPACK_FAILED CONSTANT PLS_INTEGER := 3;
REPACK_ABORTING CONSTANT PLS_INTEGER := 4;
REPACK_ABORTED CONSTANT PLS_INTEGER := 5;
TAPE_DISABLED CONSTANT PLS_INTEGER := 1;
TAPE_EXPORTED CONSTANT PLS_INTEGER := 2;
TAPE_BUSY CONSTANT PLS_INTEGER := 4;
TAPE_FULL CONSTANT PLS_INTEGER := 8;
TAPE_RDONLY CONSTANT PLS_INTEGER := 16;
TAPE_ARCHIVED CONSTANT PLS_INTEGER := 32;
REPACK_SUBMITTED CONSTANT PLS_INTEGER := 6;
REPACK_STARTING CONSTANT PLS_INTEGER := 0;
REPACK_ONGOING CONSTANT PLS_INTEGER := 1;
REPACK_FINISHED CONSTANT PLS_INTEGER := 2;
REPACK_FAILED CONSTANT PLS_INTEGER := 3;
REPACK_ABORTING CONSTANT PLS_INTEGER := 4;
REPACK_ABORTED CONSTANT PLS_INTEGER := 5;
TAPE_DISABLED CONSTANT PLS_INTEGER := 1;
TAPE_EXPORTED CONSTANT PLS_INTEGER := 2;
TAPE_BUSY CONSTANT PLS_INTEGER := 4;
TAPE_FULL CONSTANT PLS_INTEGER := 8;
TAPE_RDONLY CONSTANT PLS_INTEGER := 16;
TAPE_ARCHIVED CONSTANT PLS_INTEGER := 32;
END tconst;
/
......@@ -113,33 +114,33 @@ END;
CREATE OR REPLACE PACKAGE dconst
AS
CASTORFILE_NOTONTAPE CONSTANT PLS_INTEGER := 0;
CASTORFILE_ONTAPE CONSTANT PLS_INTEGER := 1;
CASTORFILE_DISKONLY CONSTANT PLS_INTEGER := 2;
DISKCOPY_VALID CONSTANT PLS_INTEGER := 0;
DISKCOPY_FAILED CONSTANT PLS_INTEGER := 4;
DISKCOPY_WAITFS CONSTANT PLS_INTEGER := 5;
DISKCOPY_STAGEOUT CONSTANT PLS_INTEGER := 6;
DISKCOPY_INVALID CONSTANT PLS_INTEGER := 7;
DISKCOPY_BEINGDELETED CONSTANT PLS_INTEGER := 9;
DISKCOPY_WAITFS_SCHEDULING CONSTANT PLS_INTEGER := 11;
DISKSERVER_PRODUCTION CONSTANT PLS_INTEGER := 0;
DISKSERVER_DRAINING CONSTANT PLS_INTEGER := 1;
DISKSERVER_DISABLED CONSTANT PLS_INTEGER := 2;
DISKSERVER_READONLY CONSTANT PLS_INTEGER := 3;
FILESYSTEM_PRODUCTION CONSTANT PLS_INTEGER := 0;
FILESYSTEM_DRAINING CONSTANT PLS_INTEGER := 1;
FILESYSTEM_DISABLED CONSTANT PLS_INTEGER := 2;
FILESYSTEM_READONLY CONSTANT PLS_INTEGER := 3;
CASTORFILE_NOTONTAPE CONSTANT PLS_INTEGER := 0;
CASTORFILE_ONTAPE CONSTANT PLS_INTEGER := 1;
CASTORFILE_DISKONLY CONSTANT PLS_INTEGER := 2;
DISKCOPY_VALID CONSTANT PLS_INTEGER := 0;
DISKCOPY_FAILED CONSTANT PLS_INTEGER := 4;
DISKCOPY_WAITFS CONSTANT PLS_INTEGER := 5;
DISKCOPY_STAGEOUT CONSTANT PLS_INTEGER := 6;
DISKCOPY_INVALID CONSTANT PLS_INTEGER := 7;
DISKCOPY_BEINGDELETED CONSTANT PLS_INTEGER := 9;
DISKCOPY_WAITFS_SCHEDULING CONSTANT PLS_INTEGER := 11;
DISKSERVER_PRODUCTION CONSTANT PLS_INTEGER := 0;
DISKSERVER_DRAINING CONSTANT PLS_INTEGER := 1;
DISKSERVER_DISABLED CONSTANT PLS_INTEGER := 2;
DISKSERVER_READONLY CONSTANT PLS_INTEGER := 3;
FILESYSTEM_PRODUCTION CONSTANT PLS_INTEGER := 0;
FILESYSTEM_DRAINING CONSTANT PLS_INTEGER := 1;
FILESYSTEM_DISABLED CONSTANT PLS_INTEGER := 2;
FILESYSTEM_READONLY CONSTANT PLS_INTEGER := 3;
DRAININGJOB_SUBMITTED CONSTANT PLS_INTEGER := 0;
DRAININGJOB_STARTING CONSTANT PLS_INTEGER := 1;
DRAININGJOB_RUNNING CONSTANT PLS_INTEGER := 2;
DRAININGJOB_FAILED CONSTANT PLS_INTEGER := 4;
DRAININGJOB_FINISHED CONSTANT PLS_INTEGER := 5;
DRAININGJOB_SUBMITTED CONSTANT PLS_INTEGER := 0;
DRAININGJOB_STARTING CONSTANT PLS_INTEGER := 1;
DRAININGJOB_RUNNING CONSTANT PLS_INTEGER := 2;
DRAININGJOB_FAILED CONSTANT PLS_INTEGER := 4;
DRAININGJOB_FINISHED CONSTANT PLS_INTEGER := 5;
DRAIN_FILEMASK_NOTONTAPE CONSTANT PLS_INTEGER := 0;
DRAIN_FILEMASK_ALL CONSTANT PLS_INTEGER := 1;
......@@ -166,33 +167,33 @@ AS
DISKPOOLQUERYTYPE_AVAILABLE CONSTANT PLS_INTEGER := 1;
DISKPOOLQUERYTYPE_TOTAL CONSTANT PLS_INTEGER := 2;
DISKPOOLSPACETYPE_FREE CONSTANT PLS_INTEGER := 0;
DISKPOOLSPACETYPE_CAPACITY CONSTANT PLS_INTEGER := 1;
GCTYPE_AUTO CONSTANT PLS_INTEGER := 0;
GCTYPE_USER CONSTANT PLS_INTEGER := 1;
GCTYPE_TOOMANYREPLICAS CONSTANT PLS_INTEGER := 2;
GCTYPE_DRAINING CONSTANT PLS_INTEGER := 3;
GCTYPE_NSSYNCH CONSTANT PLS_INTEGER := 4;
GCTYPE_OVERWRITTEN CONSTANT PLS_INTEGER := 5;
GCTYPE_ADMIN CONSTANT PLS_INTEGER := 6;
GCTYPE_FAILEDD2D CONSTANT PLS_INTEGER := 7;
DISKPOOLSPACETYPE_FREE CONSTANT PLS_INTEGER := 0;
DISKPOOLSPACETYPE_CAPACITY CONSTANT PLS_INTEGER := 1;
GCTYPE_AUTO CONSTANT PLS_INTEGER := 0;
GCTYPE_USER CONSTANT PLS_INTEGER := 1;
GCTYPE_TOOMANYREPLICAS CONSTANT PLS_INTEGER := 2;
GCTYPE_DRAINING CONSTANT PLS_INTEGER := 3;
GCTYPE_NSSYNCH CONSTANT PLS_INTEGER := 4;
GCTYPE_OVERWRITTEN CONSTANT PLS_INTEGER := 5;
GCTYPE_ADMIN CONSTANT PLS_INTEGER := 6;
GCTYPE_FAILEDD2D CONSTANT PLS_INTEGER := 7;
DELDC_ENOENT CONSTANT PLS_INTEGER := 1;
DELDC_RECALL CONSTANT PLS_INTEGER := 2;
DELDC_REPLICATION CONSTANT PLS_INTEGER := 3;
DELDC_LOST CONSTANT PLS_INTEGER := 4;
DELDC_GC CONSTANT PLS_INTEGER := 5;
DELDC_NOOP CONSTANT PLS_INTEGER := 6;
DISK2DISKCOPYJOB_PENDING CONSTANT PLS_INTEGER := 0;
DISK2DISKCOPYJOB_SCHEDULED CONSTANT PLS_INTEGER := 1;
DISK2DISKCOPYJOB_RUNNING CONSTANT PLS_INTEGER := 2;
REPLICATIONTYPE_USER CONSTANT PLS_INTEGER := 0;
REPLICATIONTYPE_INTERNAL CONSTANT PLS_INTEGER := 1;
REPLICATIONTYPE_DRAINING CONSTANT PLS_INTEGER := 2;
REPLICATIONTYPE_REBALANCE CONSTANT PLS_INTEGER := 3;
DELDC_ENOENT CONSTANT PLS_INTEGER := 1;
DELDC_RECALL CONSTANT PLS_INTEGER := 2;
DELDC_REPLICATION CONSTANT PLS_INTEGER := 3;
DELDC_LOST CONSTANT PLS_INTEGER := 4;
DELDC_GC CONSTANT PLS_INTEGER := 5;
DELDC_NOOP CONSTANT PLS_INTEGER := 6;
DISK2DISKCOPYJOB_PENDING CONSTANT PLS_INTEGER := 0;
DISK2DISKCOPYJOB_SCHEDULED CONSTANT PLS_INTEGER := 1;
DISK2DISKCOPYJOB_RUNNING CONSTANT PLS_INTEGER := 2;
REPLICATIONTYPE_USER CONSTANT PLS_INTEGER := 0;
REPLICATIONTYPE_INTERNAL CONSTANT PLS_INTEGER := 1;
REPLICATIONTYPE_DRAINING CONSTANT PLS_INTEGER := 2;
REPLICATIONTYPE_REBALANCE CONSTANT PLS_INTEGER := 3;
END dconst;
/
......
......@@ -443,7 +443,7 @@ BEGIN
INSERT INTO DiskCopy (path, gcWeight, creationTime, lastAccessTime, diskCopySize, nbCopyAccesses,
owneruid, ownergid, id, gcType, fileSystem, castorFile, status, importance)
VALUES (varDestPath, varDcGcWeight, getTime(), getTime(), varFileSize, 0, varUid, varGid, varDestDcId,
CASE varNewDcStatus WHEN dconst.DISKCOPY_INVALID THEN dconst.GCTYPE_OVERWRITTEN ELSE NULL END,
CASE varNewDcStatus WHEN dconst.DISKCOPY_INVALID THEN dconst.GCTYPE_FAILEDD2D ELSE NULL END,
varDestFsId, varCfId, varNewDcStatus, varDCImportance);
-- Wake up waiting subrequests
UPDATE SubRequest
......
......@@ -111,12 +111,12 @@ EXCEPTION WHEN NO_DATA_FOUND THEN
-- it was a recall mount
-- find and reset the all RecallJobs of files for this VID
UPDATE RecallJob
SET status = tconst.RECALLJOB_PENDING,
fileTransactionId = NULL
SET status = tconst.RECALLJOB_PENDING
WHERE castorFile IN (SELECT castorFile
FROM RecallJob
WHERE VID = varVID
AND (fileTransactionId IS NOT NULL OR status = tconst.RECALLJOB_RETRYMOUNT));
AND (status = tconst.RECALLJOB_SELECTED
OR status = tconst.RECALLJOB_RETRYMOUNT));
DELETE FROM RecallMount WHERE vid = varVID;
EXCEPTION WHEN NO_DATA_FOUND THEN
-- Small infusion of paranoia ;-) We should never reach that point...
......@@ -577,7 +577,8 @@ BEGIN
WHERE RecallMount.mountTransactionId = inMountTransactionId
AND RecallJob.vid = RecallMount.vid
AND RecallJob.fseq = inFseq
AND RecallJob.status = tconst.RECALLJOB_SELECTED
AND (RecallJob.status = tconst.RECALLJOB_SELECTED
OR RecallJob.status = tconst.RECALLJOB_SELECTED2NDCOPY)
AND RecallJob.castorFile = CastorFile.id
AND ROWNUM < 2
FOR UPDATE OF CastorFile.id;
......@@ -692,8 +693,7 @@ BEGIN
-- increase retry counters within mount and set recallJob status to NEW
UPDATE RecallJob
SET nbRetriesWithinMount = nbRetriesWithinMount + 1,
status = tconst.RECALLJOB_PENDING,
fileTransactionId = NULL
status = tconst.RECALLJOB_PENDING
WHERE castorFile = inCfId
AND VID = inVID;
-- detect the RecallJobs with too many retries within this mount
......@@ -1715,7 +1715,7 @@ BEGIN
RETURNING fileTransactionId INTO varFileTrId;
-- update RecallJobs of this file. Only the recalled one gets a fileTransactionId
UPDATE RecallJob
SET status = tconst.RECALLJOB_SELECTED,
SET status = CASE WHEN id = varRjId THEN tconst.RECALLJOB_SELECTED ELSE tconst.RECALLJOB_SELECTED2NDCOPY END,
fileTransactionID = CASE WHEN id = varRjId THEN varFileTrId ELSE NULL END
WHERE castorFile = varCfId;
IF varCount >= inCount OR varTotalSize >= inTotalSize THEN
......
/******************************************************************************
* AlreadyInitialized.cpp
*
* This file is part of the Castor project.
* See http://castor.web.cern.ch/castor
*
* Copyright (C) 2003 CERN
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
*
*
*
* @author Sebastien Ponce
*****************************************************************************/
// Include Files
#include <errno.h>
#include "serrno.h"
#include "castor/exception/AlreadyInitialized.hpp"
// -----------------------------------------------------------------------
// Constructor
// -----------------------------------------------------------------------
castor::exception::AlreadyInitialized::AlreadyInitialized() :
castor::exception::Exception(SEALREADYINIT) {}
/******************************************************************************
* AlreadyInitialized.hpp
*
* This file is part of the Castor project.
* See http://castor.web.cern.ch/castor
*
* Copyright (C) 2003 CERN
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*
*
* Invalid argument exception
*
* @author Sebastien Ponce
*****************************************************************************/
#ifndef EXCEPTION_ALREADYINITIALIZED_HPP
#define EXCEPTION_ALREADYINITIALIZED_HPP 1
// Include Files
#include "castor/exception/Exception.hpp"
namespace castor {
namespace exception {
/**
* Invalid argument exception
*/
class AlreadyInitialized : public castor::exception::Exception {
public:
/**
* default constructor
*/
AlreadyInitialized();
};
} // end of namespace exception
} // end of namespace castor
#endif // EXCEPTION_ALREADYINITIALIZED_HPP
......@@ -46,9 +46,7 @@ castor::exception::Backtrace::Backtrace(): m_trace() {
theFunc = line.substr(line.find("(")+1, line.find("+") - (line.find("(") + 1));
after = line.substr(line.find("+"), std::string::npos);
int status(-1);
char demangled[200];
size_t length(sizeof(demangled));
abi::__cxa_demangle(theFunc.c_str(), demangled, &length, &status);
char * demangled = abi::__cxa_demangle(theFunc.c_str(), NULL, NULL, &status);
if (0 == status) {
m_trace += before;
m_trace += demangled;
......@@ -58,6 +56,7 @@ castor::exception::Backtrace::Backtrace(): m_trace() {
m_trace += strings[i];
m_trace += "\n";
}
free(demangled);
} else {
m_trace += strings[i];
m_trace += "\n";
......@@ -65,4 +64,5 @@ castor::exception::Backtrace::Backtrace(): m_trace() {
}
free (strings);
}
}
\ No newline at end of file
}
......@@ -35,4 +35,5 @@ namespace castor {
std::string m_trace;
};
}
}
\ No newline at end of file
}
......@@ -34,18 +34,21 @@ castor::exception::Exception::Exception(int se) : m_serrno(se) {}
//------------------------------------------------------------------------------
// copy constructor
//------------------------------------------------------------------------------
castor::exception::Exception::Exception(castor::exception::Exception& ex) {
m_serrno = ex.code();
m_message << ex.getMessage().str();
castor::exception::Exception::Exception(
const castor::exception::Exception& rhs):
std::exception() {
m_serrno = rhs.m_serrno;
m_message << rhs.m_message.str();
}
//------------------------------------------------------------------------------
// assignement operator
// assignment operator
//------------------------------------------------------------------------------
castor::exception::Exception& castor::exception::Exception::operator=(castor::exception::Exception &ex) {
m_serrno = ex.code();
m_message << ex.getMessage().str();
castor::exception::Exception& castor::exception::Exception::operator=(
const castor::exception::Exception &rhs) {
m_serrno = rhs.m_serrno;
m_message << rhs.m_message.str();
return *this;
}
......
......@@ -53,12 +53,12 @@ namespace castor {
/**
* Copy Constructor
*/
Exception(Exception& dbex);
Exception(const Exception& rhs);
/**
* Assignment operator
*/
Exception& operator=(Exception &dbex);
Exception& operator=(const Exception &rhs);
/**
* Empty Destructor, explicitely non-throwing (needed for std::exception
......
......@@ -56,7 +56,7 @@ set_target_properties (stagerd PROPERTIES
COMPILE_FLAGS ${ORACLE_CPPFLAGS}
LINK_FLAGS "-L${ORACLE_LIBDIR} -locci -lclntsh")
target_link_libraries (stagerd castorclient castorcnvs castorcommon castorns
castorupv castordlf)
castorupv castordlf castorcommonora)
install (TARGETS stagerd DESTINATION ${CASTOR_DEST_BIN_DIR})
CastorInstallAdmManPage (stagerd)
CastorInstallLogRotate (castor-stager-server)
......
......@@ -33,6 +33,7 @@ set (COMMON_LIB_SRC_FILES
socket_timeout.c u64subr.c Cinitdaemon.c Cgetopt.c
Cregexp.c Cexportconf.c Csnprintf.c util.c
Csecloader.c castor1compat.c
../castor/exception/AlreadyInitialized.cpp
../castor/exception/Backtrace.cpp
../castor/exception/BadVersion.cpp
../castor/exception/Busy.cpp
......@@ -42,7 +43,7 @@ set (COMMON_LIB_SRC_FILES
../castor/exception/InvalidArgument.cpp
../castor/exception/InvalidConfigEntry.cpp
../castor/exception/InvalidConfiguration.cpp
../castor/exception/InvalidNbArguments.hpp
../castor/exception/InvalidNbArguments.cpp
../castor/exception/Internal.cpp
../castor/exception/Mismatch.cpp
../castor/exception/NotSupported.cpp
......
......@@ -18,7 +18,9 @@ COMMONLIB_OBJS = compat.o getacct.o getacctent.o getconfent.o \
socket_timeout.o u64subr.o Cinitdaemon.o Cgetopt.o \
Cregexp.o Cexportconf.o Csnprintf.o util.o \
Csecloader.o castor1compat.o \
../castor/exception/AlreadyInitialized.o \
../castor/exception/BadVersion.o \
../castor/exception/Backtrace.o \
../castor/exception/Busy.o \
../castor/exception/DismountFailed.o \
../castor/exception/Exception.o \
......
......@@ -69,6 +69,7 @@ char *sys_serrlist[SEMAXERR-SEBASEOFF+2]=
"Mismatch",
"Request failed",
"Invalid number of arguments",
"Already initialized",
"BAD ERROR NUMBER"
};
......
......@@ -21,6 +21,7 @@
%attr(0644,root,root) usr/include/castor/castor/dlf/Message.hpp
%attr(0644,root,root) usr/include/castor/castor/dlf/Param.hpp
%attr(0644,root,root) usr/include/castor/castor/dlf/TimeStamp.hpp
%attr(0644,root,root) usr/include/castor/castor/exception/AlreadyInitialized.hpp
%attr(0644,root,root) usr/include/castor/castor/exception/Communication.hpp
%attr(0644,root,root) usr/include/castor/castor/exception/Exception.hpp
%attr(0644,root,root) usr/include/castor/castor/exception/Internal.hpp
......
......@@ -80,8 +80,9 @@
#define SEMISMATCH SEBASEOFF+46 /* Mismatch */
#define SEREQUESTFAILED SEBASEOFF+47 /* Request failed */
#define SEINVALIDNBARGS SEBASEOFF+48 /* Invalid number of arguments */
#define SEALREADYINIT SEBASEOFF+49 /* Already initialized */
#define SEMAXERR SEBASEOFF+48 /* Maximum error number */
#define SEMAXERR SEBASEOFF+49 /* Maximum error number */
#define SERRNO (serrno - SEBASEOFF) /* User convenience */
/*
......
......@@ -199,6 +199,9 @@ The following error values might be returned by any package:
.TP
.B SEINVALIDNBARGS
(1048) Invalid number of arguments
.TP
.B SEALREADYINIT
(1049) Already initialized
.SH COPYTAPE ERRORS
None yet
......
......@@ -2,5 +2,5 @@ Cluster:
castordev/client
Example:
STAGER_TRACE=0 rfio --basedir /castor/cern.ch/user/s/sponcec3/tape/stress2114 --stager castorcert5-lb --svcclass largedisk2 --nbthreads 20 --nbreads 1 --delay 0 --nbiterations 0
STAGER_TRACE=0 c2stress --basedir /castor/cern.ch/user/s/sponcec3/tape/stress2114 --stager castorcert5-lb --svcclass largedisk2 --nbthreads 20 --nbreads 1 --delay 0 --nbiterations 0
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment