]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix #898 truncate volumes larger than 200 bytes
authorEric Bollengier <eric@baculasystems.com>
Wed, 11 Feb 2015 16:32:56 +0000 (17:32 +0100)
committerKern Sibbald <kern@sibbald.com>
Sat, 21 Nov 2015 17:10:43 +0000 (09:10 -0800)
bacula/src/dird/ua_purge.c

index 2507c576ee301d1f6f0fb02cd0cdb8e89b376287..9fc7690f2af0bef9b8b1c7301c40f1b6797064a7 100644 (file)
@@ -705,7 +705,7 @@ int truncate_cmd(UAContext *ua, const char *cmd)
     */
    mr.Recycle = 1;
    mr.Enabled = 1;
-   mr.VolBytes = 10000;
+   mr.VolBytes = 200;
    set_storageid_in_mr(store, &mr);
    bstrncpy(mr.VolStatus, "Purged", sizeof(mr.VolStatus));
    if (!db_get_media_ids(ua->jcr, ua->db, &mr, &nb, &results)) {