diff --git a/tapeserver/castor/legacymsg/CMakeLists.txt b/tapeserver/castor/legacymsg/CMakeLists.txt index 21faabfdf7bed6c0972d41b73a431ff600cab632..73b7b5228236b3702382faaa44fc24249de845fd 100644 --- a/tapeserver/castor/legacymsg/CMakeLists.txt +++ b/tapeserver/castor/legacymsg/CMakeLists.txt @@ -6,8 +6,5 @@ include_directories(${PROJECT_SOURCE_DIR}/tapeserver/h) add_library (ctalegacymsg TapeLabelRqstMsgBody.cpp MessageHeader.cpp - TapeStatReplyMsgBody.cpp - TapeStatRequestMsgBody.cpp GenericErrorReplyMsgBody.cpp - GenericReplyMsgBody.cpp - TapeStatDriveEntry.cpp) + GenericReplyMsgBody.cpp) diff --git a/tapeserver/castor/legacymsg/TapeStatDriveEntry.cpp b/tapeserver/castor/legacymsg/TapeStatDriveEntry.cpp deleted file mode 100644 index a527d78fb1c3fb724d3557fe7b6e502ad5734c07..0000000000000000000000000000000000000000 --- a/tapeserver/castor/legacymsg/TapeStatDriveEntry.cpp +++ /dev/null @@ -1,45 +0,0 @@ -/****************************************************************************** - * - * 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 Castor Dev team, castor-dev@cern.ch - *****************************************************************************/ - -#include "castor/legacymsg/TapeStatDriveEntry.hpp" - -#include <string.h> - -//------------------------------------------------------------------------------ -// constructor -//------------------------------------------------------------------------------ -castor::legacymsg::TapeStatDriveEntry::TapeStatDriveEntry() throw(): - uid(0), - jid(0), - up(0), - asn(0), - asn_time(0), - mode(0), - tobemounted(0), - cfseq(0) { - memset(logicalLibrary, '\0', sizeof(logicalLibrary)); - memset(drive, '\0', sizeof(drive)); - memset(lblcode, '\0', sizeof(lblcode)); - memset(vid, '\0', sizeof(vid)); - memset(vsn, '\0', sizeof(vsn)); -} diff --git a/tapeserver/castor/legacymsg/TapeStatDriveEntry.hpp b/tapeserver/castor/legacymsg/TapeStatDriveEntry.hpp deleted file mode 100644 index d29bce4c180894cd9e3c64be909329d853967024..0000000000000000000000000000000000000000 --- a/tapeserver/castor/legacymsg/TapeStatDriveEntry.hpp +++ /dev/null @@ -1,62 +0,0 @@ -/****************************************************************************** - * - * 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 Castor Dev team, castor-dev@cern.ch - *****************************************************************************/ - -#pragma once - -#include "common/Constants.hpp" -#include "h/Castor_limits.h" -#include <stdint.h> - -namespace castor { -namespace legacymsg { - -/** - * Structure defining a drive entry within the body of a TPSTAT message. - */ -struct TapeStatDriveEntry { - uint32_t uid; - uint32_t jid; // process group id or session id - char logicalLibrary[CA_MAXDGNLEN+1]; // logical Library name - uint16_t up; // drive status: down = 0, up = 1 - uint16_t asn; // assign flag: assigned = 1 - uint32_t asn_time; // timestamp of drive assignment - char drive[CA_MAXUNMLEN+1]; // drive name - uint16_t mode; // WRITE_DISABLE or WRITE_ENABLE - char lblcode[CA_MAXLBLTYPLEN+1]; // label code: AUL or DMP - uint16_t tobemounted; // 1 means tape to be mounted - char vid[cta::CA_MAXVIDLEN+1]; - char vsn[CA_MAXVSNLEN+1]; - uint32_t cfseq; // current file sequence number - - /** - * Constructor. - * - * Sets all integer member-variables to 0 and all string member-variables to - * the empty string. - */ - TapeStatDriveEntry() throw(); -}; - -} // namespace legacymsg -} // namespace castor - diff --git a/tapeserver/castor/legacymsg/TapeStatReplyMsgBody.cpp b/tapeserver/castor/legacymsg/TapeStatReplyMsgBody.cpp deleted file mode 100644 index 6b35dae6e331c9a069803af11d72cff3848fb94d..0000000000000000000000000000000000000000 --- a/tapeserver/castor/legacymsg/TapeStatReplyMsgBody.cpp +++ /dev/null @@ -1,33 +0,0 @@ -/****************************************************************************** - * - * 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 Castor Dev team, castor-dev@cern.ch - *****************************************************************************/ - -#include "castor/legacymsg/TapeStatReplyMsgBody.hpp" - -#include <string.h> - -//------------------------------------------------------------------------------ -// constructor -//------------------------------------------------------------------------------ -castor::legacymsg::TapeStatReplyMsgBody::TapeStatReplyMsgBody() throw(): - number_of_drives(0) { -} diff --git a/tapeserver/castor/legacymsg/TapeStatReplyMsgBody.hpp b/tapeserver/castor/legacymsg/TapeStatReplyMsgBody.hpp deleted file mode 100644 index 913a0ea6628ba8f2bd0e751a116e3ad919964c92..0000000000000000000000000000000000000000 --- a/tapeserver/castor/legacymsg/TapeStatReplyMsgBody.hpp +++ /dev/null @@ -1,54 +0,0 @@ -/****************************************************************************** - * - * 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 Castor Dev team, castor-dev@cern.ch - *****************************************************************************/ - -#pragma once - -#include "castor/legacymsg/TapeStatDriveEntry.hpp" - -#include "h/Castor_limits.h" -#include <stdint.h> -#include <string> - - -namespace castor { -namespace legacymsg { - -/** - * A Tape Stat reply message. - */ -struct TapeStatReplyMsgBody { - uint16_t number_of_drives; - struct TapeStatDriveEntry drives[CA_MAXNBDRIVES]; - - /** - * Constructor. - * - * Sets all integer member-variables to 0 and all string member-variables to - * the empty string. - */ - TapeStatReplyMsgBody() throw(); -}; - -} // namespace legacymsg -} // namespace castor - diff --git a/tapeserver/castor/legacymsg/TapeStatRequestMsgBody.cpp b/tapeserver/castor/legacymsg/TapeStatRequestMsgBody.cpp deleted file mode 100644 index bca5477a412be4ee7e8efb6d1f92f6dbfd3f3c3f..0000000000000000000000000000000000000000 --- a/tapeserver/castor/legacymsg/TapeStatRequestMsgBody.cpp +++ /dev/null @@ -1,29 +0,0 @@ -/****************************************************************************** - * - * 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 Castor Dev team, castor-dev@cern.ch - *****************************************************************************/ - -#include "castor/legacymsg/TapeStatRequestMsgBody.hpp" -#include <string.h> - -castor::legacymsg::TapeStatRequestMsgBody::TapeStatRequestMsgBody() throw(): - uid(0), - gid(0) {} diff --git a/tapeserver/castor/legacymsg/TapeStatRequestMsgBody.hpp b/tapeserver/castor/legacymsg/TapeStatRequestMsgBody.hpp deleted file mode 100644 index 4da0128dfde7aa0fe499c911dd2f2cc9c073f813..0000000000000000000000000000000000000000 --- a/tapeserver/castor/legacymsg/TapeStatRequestMsgBody.hpp +++ /dev/null @@ -1,50 +0,0 @@ -/****************************************************************************** - * - * 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 Castor Dev team, castor-dev@cern.ch - *****************************************************************************/ - -#pragma once - -#include "h/Castor_limits.h" -#include <stdint.h> -#include <sys/stat.h> - - -namespace castor { -namespace legacymsg { - -/** - * An admin command message. - */ -struct TapeStatRequestMsgBody { - uid_t uid; - gid_t gid; - - /** - * Constructor. - */ - TapeStatRequestMsgBody() throw(); - -}; // struct TapeStatRequestMsgBody - -} // namespace legacymsg -} // namespace castor -