Skip to content

Commit

Permalink
Fix coding error.
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco van Wieringen committed May 9, 2015
1 parent 619c8ff commit 2761f07
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/dird/ndmp_dma.c
Expand Up @@ -1279,12 +1279,14 @@ static inline bool build_ndmp_job(JCR *jcr,
Jmsg(jcr, M_FATAL, 0,
_("For SMTAPE NDMP jobs the NDMP blocksize needs to be between %d and %d, but is set to %d\n"),
SMTAPE_MIN_BLOCKSIZE, SMTAPE_MAX_BLOCKSIZE, jcr->res.client->ndmp_blocksize);
goto bail_out;
}

if ((jcr->res.client->ndmp_blocksize % SMTAPE_BLOCKSIZE_INCREMENTS) != 0) {
Jmsg(jcr, M_FATAL, 0,
_("For SMTAPE NDMP jobs the NDMP blocksize needs to be in increments of %d bytes, but is set to %d\n"),
SMTAPE_BLOCKSIZE_INCREMENTS, jcr->res.client->ndmp_blocksize);
goto bail_out;
}

job->record_size = jcr->res.client->ndmp_blocksize;
Expand Down

0 comments on commit 2761f07

Please sign in to comment.