From: Eric Bollengier Date: Thu, 14 Jan 2010 14:23:02 +0000 (+0100) Subject: Fix #1450 about FirstWritten not updated with bscan X-Git-Tag: Release-5.0.0~70^2~2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=98eb0f364afab372f9472fc8e8b951cb00f69673;p=bacula%2Fbacula Fix #1450 about FirstWritten not updated with bscan --- diff --git a/bacula/src/stored/bscan.c b/bacula/src/stored/bscan.c index 9372ab6895..eb1d121306 100644 --- a/bacula/src/stored/bscan.c +++ b/bacula/src/stored/bscan.c @@ -914,6 +914,7 @@ static int create_media_record(B_DB *db, MEDIA_DBR *mr, VOLUME_LABEL *vl) mr->VolRetention = 365 * 3600 * 24; /* 1 year */ mr->Enabled = 1; if (vl->VerNum >= 11) { + mr->set_first_written = true; /* Save FirstWritten during update_media */ mr->FirstWritten = btime_to_utime(vl->write_btime); mr->LabelDate = btime_to_utime(vl->label_btime); } else {