]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/stored/device.c
add PostgreSQL support
[bacula/bacula] / bacula / src / stored / device.c
index 0fad7a420f6f4374d8c217815598a7aa477e07e3..eaacb8fcd4ed1e358e73423936df89303f289ed3 100644 (file)
@@ -109,6 +109,7 @@ int fixup_device_block_write_error(JCR *jcr, DEVICE *dev, DEV_BLOCK *block)
    bstrncpy(dev->VolCatInfo.VolCatStatus, "Full", sizeof(dev->VolCatInfo.VolCatStatus));
    Dmsg2(100, "Call update_vol_info Stat=%s Vol=%s\n", 
       dev->VolCatInfo.VolCatStatus, dev->VolCatInfo.VolCatName);
+   dev->VolCatInfo.VolCatFiles = dev->file;   /* set number of files */
    dev->VolCatInfo.VolCatJobs++;             /* increment number of jobs */
    if (!dir_update_volume_info(jcr, dev, 0)) {   /* send Volume info to Director */
       P(dev->mutex);