Skip to content
Snippets Groups Projects
Commit 57151a2f authored by Steven Murray's avatar Steven Murray Committed by Steven Murray
Browse files

Moved the rbtsubr constants from h/Ctape.h to h/rbtsubr_constants.h

parent cf61c8ff
No related branches found
No related tags found
No related merge requests found
/******************************************************************************
* rbtsubr_constants.h
*
* 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
*****************************************************************************/
#ifndef _RBTSUBR_CONSTANTS_H
#define _RBTSUBR_CONSTANTS_H 1
/* rbtsubr return codes */
#define RBT_OK 0 /* Ok or error should be ignored */
#define RBT_NORETRY 1 /* Unrecoverable error (just log it) */
#define RBT_SLOW_RETRY 2 /* Should release drive & retry in 600 seconds */
#define RBT_FAST_RETRY 3 /* Should retry in 60 seconds */
#define RBT_DMNT_FORCE 4 /* Should do first a demount force */
#define RBT_CONF_DRV_DN 5 /* Should configure the drive down */
#define RBT_OMSG_NORTRY 6 /* Should send a msg to operator and exit */
#define RBT_OMSG_SLOW_R 7 /* Ops msg (nowait) + release drive + slow retry */
#define RBT_OMSGR 8 /* Should send a msg to operator and wait */
#define RBT_UNLD_DMNT 9 /* Should unload the tape and retry demount */
#endif
......@@ -13,6 +13,7 @@
#include <sys/types.h>
#include "h/Ctape.h"
#include "h/rbtsubr_constants.h"
#include "h/rmc_constants.h"
#include "h/rmc_send_scsi_cmd.h"
#include "h/rmc_sendrep.h"
......
......@@ -10,6 +10,7 @@
#include <string.h>
#include <unistd.h>
#include "h/Ctape.h"
#include "h/rbtsubr_constants.h"
#include "h/rmc_api.h"
#include "h/serrno.h"
#include "h/smc_constants.h"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment