src/filed/fd_snapshot.c
int create_catalog_entry() {
      int ret = 0;
      char ed1[50];
      bash_spaces();
      jcr->dir_bsock->fsend(CreateSnap,
                            jcr->Job, Name, Volume,
                            Device, CreateTDate, Type, edit_uint64(Retention, ed1));
      if (jcr->dir_bsock->recv() < 0) {
         Mmsg(errmsg, _("Unable to create snapshot record. ERR=%s\n"),
              jcr->dir_bsock->bstrerror());

      } else if (strncmp(jcr->dir_bsock->msg, "1000", 4) != 0) {
         Mmsg(errmsg, _("Unable to create snapshot record, got %s\n"),
              jcr->dir_bsock->msg);

      } else {
         ret = 1;               /* OK */
      }
      unbash_spaces();
      return ret;
   }
/* Create Catalog entry for the current snapshot */
Create Catalog entry for the current snapshot
Create Catalog entry for the current snapshot
int create_catalog_entry() {
      int ret = 0;
      char ed1[50];
      bash_spaces();
      jcr->dir_bsock->fsend(CreateSnap,
                            jcr->Job, Name, Volume,
                            Device, CreateTDate, Type, edit_uint64(Retention, ed1));
      if (jcr->dir_bsock->recv() < 0) {
         Mmsg(errmsg, _("Unable to create snapshot record. ERR=%s\n"),
              jcr->dir_bsock->bstrerror());
      } else if (strncmp(jcr->dir_bsock->msg, "1000", 4) != 0) {
         Mmsg(errmsg, _("Unable to create snapshot record, got %s\n"),
              jcr->dir_bsock->msg);
      } else {
         ret = 1;               
      }
      unbash_spaces();
      return ret;
   }
int create_catalog_entry ( ) { int ret = 0 ; char ed1 [ 50 ] ; bash_spaces ( ) ; jcr -> dir_bsock -> fsend ( CreateSnap , jcr -> Job , Name , Volume , Device , CreateTDate , Type , edit_uint64 ( Retention , ed1 ) ) ; if ( jcr -> dir_bsock -> recv ( ) < 0 ) { Mmsg ( errmsg , _ ( " \n " ) , jcr -> dir_bsock -> bstrerror ( ) ) ; } else if ( strncmp ( jcr -> dir_bsock -> msg , " " , 4 ) != 0 ) { Mmsg ( errmsg , _ ( " \n " ) , jcr -> dir_bsock -> msg ) ; } else { ret = 1 ; } unbash_spaces ( ) ; return ret ; }
Create Catalog entry for the current snapshot
Create Catalog entry for the current snapshot
/* OK */