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 */
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) */
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);
{"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},
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 */