src/filed/job.c
static int session_cmd(JCR *jcr)
{
   BSOCK *dir = jcr->dir_bsock;

   Dmsg1(100, "SessionCmd: %s", dir->msg);
   if (sscanf(dir->msg, sessioncmd, jcr->VolumeName,
              &jcr->VolSessionId, &jcr->VolSessionTime,
              &jcr->StartFile, &jcr->EndFile,
              &jcr->StartBlock, &jcr->EndBlock) != 7) {
      pm_strcpy(jcr->errmsg, dir->msg);
      Jmsg(jcr, M_FATAL, 0, _("Bad session command: %s"), jcr->errmsg);
      return 0;
   }

   return dir->fsend(OKsession);
}
/**
 * Get session parameters from Director -- this is for a Restore command
 *   This is deprecated. It is now passed via the bsr.
 */
Get session parameters from Director -- this is for a Restore command
This is deprecated. It is now passed via the bsr.
Get session parameters from Director -- this is for a Restore command This is deprecated . It is now passed via the bsr .
static int session_cmd(JCR *jcr)
{
   BSOCK *dir = jcr->dir_bsock;
   Dmsg1(100, "SessionCmd: %s", dir->msg);
   if (sscanf(dir->msg, sessioncmd, jcr->VolumeName,
              &jcr->VolSessionId, &jcr->VolSessionTime,
              &jcr->StartFile, &jcr->EndFile,
              &jcr->StartBlock, &jcr->EndBlock) != 7) {
      pm_strcpy(jcr->errmsg, dir->msg);
      Jmsg(jcr, M_FATAL, 0, _("Bad session command: %s"), jcr->errmsg);
      return 0;
   }
   return dir->fsend(OKsession);
}
static int session_cmd ( JCR * jcr ) { BSOCK * dir = jcr -> dir_bsock ; Dmsg1 ( 100 , " " , dir -> msg ) ; if ( sscanf ( dir -> msg , sessioncmd , jcr -> VolumeName , & jcr -> VolSessionId , & jcr -> VolSessionTime , & jcr -> StartFile , & jcr -> EndFile , & jcr -> StartBlock , & jcr -> EndBlock ) != 7 ) { pm_strcpy ( jcr -> errmsg , dir -> msg ) ; Jmsg ( jcr , M_FATAL , 0 , _ ( " " ) , jcr -> errmsg ) ; return 0 ; } return dir -> fsend ( OKsession ) ; }
Get session parameters from Director -- this is for a Restore command
   This is deprecated.
Get session parameters from Director -- this is for a Restore command This is deprecated .