From 98eb0f364afab372f9472fc8e8b951cb00f69673 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Thu, 14 Jan 2010 15:23:02 +0100 Subject: [PATCH] Fix #1450 about FirstWritten not updated with bscan --- bacula/src/stored/bscan.c | 1 + 1 file changed, 1 insertion(+) 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 { -- 2.39.5