From: Kern Sibbald Date: Fri, 26 Dec 2008 16:49:12 +0000 (+0000) Subject: Update kernstodo X-Git-Tag: Release-3.0.0~403 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=adc0cae02000214ba576266e5e1bddf4501ae529;p=bacula%2Fbacula Update kernstodo git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@8255 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/kernstodo b/bacula/kernstodo index d229aa5e2b..045169612d 100644 --- a/bacula/kernstodo +++ b/bacula/kernstodo @@ -72,6 +72,8 @@ Professional Needs: Priority: ================ +- Why no error message if restore has no permission on the where + directory? - Possibly allow manual "purge" to purge a Volume that has not yet been written (even if FirstWritten time is zero) see ua_purge.c is_volume_purged(). diff --git a/bacula/src/stored/record.c b/bacula/src/stored/record.c index d2a12e6cf9..c1582aa5c2 100644 --- a/bacula/src/stored/record.c +++ b/bacula/src/stored/record.c @@ -453,12 +453,9 @@ bool read_record_from_block(DCR *dcr, DEV_BLOCK *block, DEV_RECORD *rec) rec->state = 0; if (block->dev->is_tape()) { rec->state |= REC_ISTAPE; - rec->Block = block->BlockNumber; - rec->File = ((DEVICE *)block->dev)->file; - } else { - rec->Block = ((DEVICE *)block->dev)->EndBlock; - rec->File = ((DEVICE *)block->dev)->EndFile; - } + } + rec->Block = ((DEVICE *)block->dev)->EndBlock; + rec->File = ((DEVICE *)block->dev)->EndFile; /* * Get the header. There is always a full header,