Skip to content
  • Steven Murray's avatar
    bug #82673: RFE: Tapebridged and rtcpd should support buffered tape-marks over multiple files · 541d2336
    Steven Murray authored
    The tapebridged daemon now determines and sends the values of the following
    three CASTOR configuration parameters to the rtcpd daemon:
    
    TAPEBRIDGE USEBUFFEREDTAPEMARKSOVERMULTIPLEFILES false
    TAPEBRIDGE MAXBYTESBEFOREFLUSH 8589934592
    TAPEBRIDGE MAXFILESBEFOREFLUSH 100
    
    Please note that the support for buffered tape-marks over multiple files has
    NOT been implemented.  On top of this, lines 91 to 109 inclusive of the file
    named rtcopy/rtcpd_GetClientInfo.c prevent buffered tape-marks over multiple
    files from even trying to start and these lines create an error message that
    explicitly tells the user that buffered tape-marks over multiple files is not
    supported.
    
     91   /* This version of rtcpd does NOT support buffered tape-marks over */
     92   /* multiple files                                                  */
     93   if(*clientIsTapeBridge &&
     94     tapeBridgeClientInfo2MsgBody->useBufferedTapeMarksOverMultipleFiles) {
     95     char dummyErrbuf[32]; /* For fire and forget */
     96     char *const ackMsg =
     97       "Buffered tape-marks over multiple files is not supported";
     98   
     99     /* Fire and forget negative acknowledgement to VDQM or tape-bridge */
    100     rtcpd_SendAckToVdqmOrTapeBridge(connSock, netTimeout, msgHdr.reqtype, -1    , 
    101       ackMsg, dummyErrbuf, sizeof(dummyErrbuf));
    102 
    103     snprintf(errBuf, errBufLen, "%s()"
    104       ": %s",
    105       __FUNCTION__, ackMsg);
    106     errBuf[errBufLen - 1] = '\0';
    107     serrno = ENOTSUP;
    108     return(-1);
    109   }
    541d2336