DCR *acquire_device_for_append(JCR *jcr, DEVICE *dev);
bool reserve_device_for_read(JCR *jcr, DEVICE *dev);
DCR *acquire_device_for_read(JCR *jcr, DEVICE *dev);
-bool release_device(JCR *jcr);
+bool release_device(DCR *dcr);
DCR *new_dcr(JCR *jcr, DEVICE *dev);
void free_dcr(DCR *dcr);
bool dir_update_file_attributes(DCR *dcr, DEV_RECORD *rec);
bool dir_send_job_status(JCR *jcr);
bool dir_create_jobmedia_record(DCR *dcr);
+bool dir_update_device(JCR *jcr, DEVICE *dev);
+bool dir_update_changer(JCR *jcr, AUTOCHANGER *changer);
/* authenticate.c */
int authenticate_director(JCR *jcr);
/* From autochanger.c */
int autoload_device(DCR *dcr, int writing, BSOCK *dir);
bool autochanger_list(DCR *dcr, BSOCK *dir);
-void invalidate_slot_in_catalog(DCR *dcr);
+void mark_volume_not_inchanger(DCR *dcr);
char *edit_device_codes(DCR *dcr, char *omsg, const char *cmd);
/* From block.c */
/* From dev.c */
-DEVICE *init_dev(DEVICE *dev, DEVRES *device);
+DEVICE *init_dev(JCR *jcr, DEVICE *dev, DEVRES *device);
int open_dev(DEVICE *dev, char *VolName, int mode);
off_t lseek_dev(DEVICE *dev, off_t offset, int whence);
int open_first_part(DEVICE *dev);
bool double_dev_wait_time(DEVICE *dev);
/* Get info about device */
-char * dev_name(DEVICE *dev);
char * dev_vol_name(DEVICE *dev);
uint32_t dev_block(DEVICE *dev);
uint32_t dev_file(DEVICE *dev);
bool mount_cb(DCR *dcr));
/* From spool.c */
-bool begin_data_spool (JCR *jcr);
-bool discard_data_spool (JCR *jcr);
-bool commit_data_spool (JCR *jcr);
+bool begin_data_spool (DCR *dcr);
+bool discard_data_spool (DCR *dcr);
+bool commit_data_spool (DCR *dcr);
bool are_attributes_spooled (JCR *jcr);
bool begin_attribute_spool (JCR *jcr);
bool discard_attribute_spool (JCR *jcr);