ok = false;
goto bail_out; /* fatal error */
}
- if (dcr->despooling && dev->device->block_encryption!=ET_NONE && dev->crypto_device_ctx!=NULL) {
+ if (dcr->despooling && dev->device->volume_encryption!=ET_NONE && dev->crypto_device_ctx!=NULL) {
// DEVICE *old = block->dev;
block->dev = dev;
// uint64_t checksum = ser_block_header(block, dev->do_checksum());
ser_declare;
uint32_t block_len = block->binbuf;
uint32_t hdr_option = 0x0;
- bool do_encrypt_vol = dev->device->block_encryption!=ET_NONE && dev->crypto_device_ctx!=NULL;
+ bool do_encrypt_vol = dev->device->volume_encryption!=ET_NONE && dev->crypto_device_ctx!=NULL;
bool do_encrypt_block = do_encrypt_vol && !block->first_block;
hdr_option |= (do_checksum?BLKHOPT_CHKSUM:0) |
(do_encrypt_vol?BLKHOPT_ENCRYPT_VOL:0) |
{
enum { op_none, op_label, op_read };
bool ok = true; // No error
- if (!device->block_encryption) {
+ if (!device->volume_encryption) {
return ok;
}
JCR *jcr = dcr->jcr;
ser_string(dev->VolHdr.PoolType);
ser_string(dev->VolHdr.MediaType);
- if (dev->device->block_encryption == ET_STRONG) {
+ if (dev->device->volume_encryption == ET_STRONG) {
ser_string("OBFUSCATED");
} else {
ser_string(dev->VolHdr.HostName);
{"Dedupengine", store_res, ITEM(res_dev.dedup), R_DEDUP, 0, 0},
#endif
{"SyncOnClose", store_bit, ITEM(res_dev.cap_bits), CAP_SYNCONCLOSE, ITEM_DEFAULT, 0},
- {"BlockEncryption", store_enctype,ITEM(res_dev.block_encryption), 0, ITEM_DEFAULT, 0},
+ {"VolumeEncryption", store_enctype,ITEM(res_dev.volume_encryption), 0, ITEM_DEFAULT, 0},
{NULL, NULL, {0}, 0, 0, 0}
};
bool set_vol_append_only; /* Set 'Append Only' filesystem flag for volumes */
bool set_vol_immutable; /* Set 'Immutable' filesystem flag for volumes */
bool set_vol_read_only; /* Set permission of volumes when marking them as Full/Used */
- uint32_t block_encryption; /* call the key-manager command to get the cipher and the key to use */
+ uint32_t volume_encryption; /* call the key-manager command to get the cipher and the key to use */
utime_t min_volume_protection_time; /* Minimum Volume Protection Time */
uint32_t drive_index; /* Autochanger drive index */
uint32_t cap_bits; /* Capabilities of this device */