* Version $Id$
*/
/*
- Copyright (C) 2000, 2001, 2002 Kern Sibbald and John Walker
+ Copyright (C) 2000-2003 Kern Sibbald and John Walker
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
* matched.
*/
for ( ;ok && !done; ) {
- if (job_cancelled(jcr)) {
+ if (job_canceled(jcr)) {
ok = FALSE;
break;
}
/* Read Record */
Dmsg1(500, "Main read_record. rem=%d\n", rec->remainder);
- if (!read_block_from_device(dev, block)) {
+ if (block_is_empty(block) && !read_block_from_device(dev, block)) {
Dmsg1(500, "Main read record failed. rem=%d\n", rec->remainder);
if (dev->state & ST_EOT) {
DEV_RECORD *record;