X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;ds=sidebyside;f=bacula%2Fsrc%2Fdird%2Fnewvol.c;h=e5352d4c3c8674ffc54da89cbcd95a81c74c275a;hb=9f01506e19567ce5c8fae5699016a1d512647f55;hp=f449fa9f2fc7f82cb468b3b814f088cf38ed5180;hpb=dd83d59687fe8779336a7238635daef7d739fbc9;p=bacula%2Fbacula diff --git a/bacula/src/dird/newvol.c b/bacula/src/dird/newvol.c index f449fa9f2f..e5352d4c3c 100644 --- a/bacula/src/dird/newvol.c +++ b/bacula/src/dird/newvol.c @@ -13,7 +13,7 @@ * Version $Id$ */ /* - Copyright (C) 2000-2003 Kern Sibbald and John Walker + Copyright (C) 2001-2004 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 @@ -41,9 +41,7 @@ static int perform_full_name_substitution(JCR *jcr, MEDIA_DBR *mr, POOL_DBR *pr) /* - * Automatic Volume name creation using - * LabelFormat. We assume that if this routine is being - * called the Volume will be labeled, so we set the LabelDate. + * Automatic Volume name creation using the LabelFormat */ int newVolume(JCR *jcr, MEDIA_DBR *mr) { @@ -59,7 +57,6 @@ int newVolume(JCR *jcr, MEDIA_DBR *mr) if (pr.MaxVols == 0 || pr.NumVols < pr.MaxVols) { memset(mr, 0, sizeof(MEDIA_DBR)); set_pool_dbr_defaults_in_media_dbr(mr, &pr); - mr->LabelDate = time(NULL); bstrncpy(mr->MediaType, jcr->store->media_type, sizeof(mr->MediaType)); /* Check for special characters */ if (is_volume_name_legal(NULL, pr.LabelFormat)) {