src/dird/fd_cmds.c
bool send_level_command(JCR *jcr)
{
   BSOCK   *fd = jcr->file_bsock;
   const char *accurate = jcr->accurate?"accurate_":"";
   const char *not_accurate = "";
   const char *rerunning = jcr->rerunning?" rerunning ":" ";
   /*
    * Send Level command to File daemon
    */
   switch (jcr->getJobLevel()) {
   case L_BASE:
      fd->fsend(levelcmd, not_accurate, "base", rerunning, 0, "", "");
      break;
   /* L_NONE is the console, sending something off to the FD */
   case L_NONE:
   case L_FULL:
      fd->fsend(levelcmd, not_accurate, "full", rerunning, 0, "", "");
      break;
   case L_DIFFERENTIAL:
      fd->fsend(levelcmd, accurate, "differential", rerunning, 0, "", "");
      send_since_time(jcr);
      break;
   case L_INCREMENTAL:
      fd->fsend(levelcmd, accurate, "incremental", rerunning, 0, "", "");
      send_since_time(jcr);
      break;
   case L_SINCE:
   default:
      Jmsg2(jcr, M_FATAL, 0, _("Unimplemented backup level %d %c\n"),
         jcr->getJobLevel(), jcr->getJobLevel());
      return 0;
   }
   Dmsg1(120, ">filed: %s", fd->msg);
   if (!response(jcr, fd, OKlevel, "Level", DISPLAY_ERROR)) {
      return false;
   }
   return true;
}
/*
 * Send level command to FD.
 * Used for backup jobs and estimate command.
 */
Send level command to FD.
Used for backup jobs and estimate command.
Send level command to FD . Used for backup jobs and estimate command .
bool send_level_command(JCR *jcr)
{
   BSOCK   *fd = jcr->file_bsock;
   const char *accurate = jcr->accurate?"accurate_":"";
   const char *not_accurate = "";
   const char *rerunning = jcr->rerunning?" rerunning ":" ";
   switch (jcr->getJobLevel()) {
   case L_BASE:
      fd->fsend(levelcmd, not_accurate, "base", rerunning, 0, "", "");
      break;
   case L_NONE:
   case L_FULL:
      fd->fsend(levelcmd, not_accurate, "full", rerunning, 0, "", "");
      break;
   case L_DIFFERENTIAL:
      fd->fsend(levelcmd, accurate, "differential", rerunning, 0, "", "");
      send_since_time(jcr);
      break;
   case L_INCREMENTAL:
      fd->fsend(levelcmd, accurate, "incremental", rerunning, 0, "", "");
      send_since_time(jcr);
      break;
   case L_SINCE:
   default:
      Jmsg2(jcr, M_FATAL, 0, _("Unimplemented backup level %d %c\n"),
         jcr->getJobLevel(), jcr->getJobLevel());
      return 0;
   }
   Dmsg1(120, ">filed: %s", fd->msg);
   if (!response(jcr, fd, OKlevel, "Level", DISPLAY_ERROR)) {
      return false;
   }
   return true;
}
bool send_level_command ( JCR * jcr ) { BSOCK * fd = jcr -> file_bsock ; const char * accurate = jcr -> accurate ? " " : " " ; const char * not_accurate = " " ; const char * rerunning = jcr -> rerunning ? " " : " " ; switch ( jcr -> getJobLevel ( ) ) { case L_BASE : fd -> fsend ( levelcmd , not_accurate , " " , rerunning , 0 , " " , " " ) ; break ; case L_NONE : case L_FULL : fd -> fsend ( levelcmd , not_accurate , " " , rerunning , 0 , " " , " " ) ; break ; case L_DIFFERENTIAL : fd -> fsend ( levelcmd , accurate , " " , rerunning , 0 , " " , " " ) ; send_since_time ( jcr ) ; break ; case L_INCREMENTAL : fd -> fsend ( levelcmd , accurate , " " , rerunning , 0 , " " , " " ) ; send_since_time ( jcr ) ; break ; case L_SINCE : default : Jmsg2 ( jcr , M_FATAL , 0 , _ ( " \n " ) , jcr -> getJobLevel ( ) , jcr -> getJobLevel ( ) ) ; return 0 ; } Dmsg1 ( 120 , " " , fd -> msg ) ; if ( ! response ( jcr , fd , OKlevel , " " , DISPLAY_ERROR ) ) { return false ; } return true ; }
Send level command to FD.
Send level command to FD .
/*
    * Send Level command to File daemon
    */ /* L_NONE is the console, sending something off to the FD */