]> git.sur5r.net Git - bacula/bacula/commitdiff
Remove obsolete truncate_on_purge settings
authorMichael Stapelberg <michael@stapelberg.de>
Wed, 30 Sep 2009 16:46:35 +0000 (18:46 +0200)
committerKern Sibbald <kern@sibbald.com>
Sat, 3 Oct 2009 15:34:05 +0000 (17:34 +0200)
bacula/src/stored/dev.c
bacula/src/stored/dev.h
bacula/src/stored/status.c
bacula/src/stored/stored_conf.c
bacula/src/stored/stored_conf.h

index 2e63db01c8f1d6737267632297ddcdc05f441b6c..5969b49eef9c7126dedcd6c73ee62e660ea5e328 100644 (file)
@@ -169,7 +169,6 @@ init_dev(JCR *jcr, DEVRES *device)
    dev->max_spool_size = device->max_spool_size;
    dev->drive_index = device->drive_index;
    dev->autoselect = device->autoselect;
-   dev->truncate_on_purge = device->truncate_on_purge;
    dev->dev_type = device->dev_type;
    dev->init_backend();
    if (dev->is_tape()) { /* No parts on tapes */
index 50753a939ee57f1bf60a90ba726ee61c00166255..f77c18f0d325faee31d562a31a83b438675ca9c4 100644 (file)
@@ -237,7 +237,6 @@ public:
    int openmode;                      /* parameter passed to open_dev (useful to reopen the device) */
    int dev_type;                      /* device type */
    bool autoselect;                   /* Autoselect in autochanger */
-   bool truncate_on_purge;            /* Truncate this volume when it gets purged? */
    bool initiated;                    /* set when init_dev() called */
    int label_type;                    /* Bacula/ANSI/IBM label types */
    uint32_t drive_index;              /* Autochanger drive index (base 0) */
index 16bc52f3854b804c385ab2b069bc9cb490bdff61..11939fb247c99b873501a2505ac0436c81283488 100644 (file)
@@ -372,9 +372,6 @@ static void send_device_status(DEVICE *dev, STATUS_PKT *sp)
    len = Mmsg(msg, _("Device parameters:\n"));
    sendit(msg, len, sp);
 
-   len = Mmsg(msg, _("truncate on purge: %d\n"), dev->device->truncate_on_purge);
-   sendit(msg, len, sp);
-
    len = Mmsg(msg, _("Archive name: %s Device name: %s\n"), dev->archive_name(),
       dev->name());
    sendit(msg, len, sp);
index 3ea6361f5484b3c910585582356cb9cc5d395844..813a94c15106692923b74f42c5a0c83268b6256f 100644 (file)
@@ -142,7 +142,6 @@ static RES_ITEM dev_items[] = {
    {"offlineonunmount",      store_bit,  ITEM(res_dev.cap_bits), CAP_OFFLINEUNMOUNT, ITEM_DEFAULT, 0},
    {"blockchecksum",         store_bit,  ITEM(res_dev.cap_bits), CAP_BLOCKCHECKSUM, ITEM_DEFAULT, 1},
    {"autoselect",            store_bool, ITEM(res_dev.autoselect), 1, ITEM_DEFAULT, 1},
-   {"truncateonpurge",       store_bool, ITEM(res_dev.truncate_on_purge), 1, ITEM_DEFAULT, 0},
    {"changerdevice",         store_strname,ITEM(res_dev.changer_name), 0, 0, 0},
    {"changercommand",        store_strname,ITEM(res_dev.changer_command), 0, 0, 0},
    {"alertcommand",          store_strname,ITEM(res_dev.alert_command), 0, 0, 0},
index 47c7ea6b64faf7c1ff6de0ac9aaa6935ee3c3b2d..7972f80c68f36c19a0f9119d6b3ed1b6f8165c9e 100644 (file)
@@ -127,7 +127,6 @@ public:
    uint32_t dev_type;                 /* device type */
    uint32_t label_type;               /* label type */
    bool autoselect;                   /* Automatically select from AutoChanger */
-   bool truncate_on_purge;            /* Truncate this volume when it gets purged? */
    uint32_t drive_index;              /* Autochanger drive index */
    uint32_t cap_bits;                 /* Capabilities of this device */
    utime_t max_changer_wait;          /* Changer timeout */