Commit 4747fd41 authored by Steven Murray's avatar Steven Murray
Browse files

Removed TapeStatRequestMsgBody

parent 7e34717d
......@@ -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)
/******************************************************************************
*
* 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));
}
/******************************************************************************
*
* 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
/******************************************************************************
*
* 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) {
}
/******************************************************************************
*
* 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
/******************************************************************************
*
* 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) {}
/******************************************************************************
*
* 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
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