bool mount_next_write_volume();
bool mount_next_read_volume();
void mark_volume_in_error();
+ void mark_volume_read_only();
void mark_volume_not_inchanger();
int try_autolabel(bool opened);
bool find_a_volume();
} else {
Dmsg0(100, "set_unload\n");
+ mark_volume_read_only();
dev->set_unload(); /* force ask sysop */
ask = true;
}
dev->set_unload(); /* must get a new volume */
}
+/*
+ * Mark volume read_only in catalog
+ */
+void DCR::mark_volume_read_only()
+{
+ Jmsg(jcr, M_INFO, 0, _("Marking Volume \"%s\" Read-Only in Catalog.\n"),
+ VolumeName);
+ dev->VolCatInfo = VolCatInfo; /* structure assignment */
+ dev->setVolCatStatus("Read-Only");
+ Dmsg0(150, "dir_update_vol_info. Set Read-Only.\n");
+ dir_update_volume_info(this, false, false);
+ volume_unused(this);
+ Dmsg0(50, "set_unload\n");
+ dev->set_unload(); /* must get a new volume */
+}
+
+
/*
* The Volume is not in the correct slot, so mark this
* Volume as not being in the Changer.