Skip to content

Commit

Permalink
stored: Only check inchanger flag on autochanger.
Browse files Browse the repository at this point in the history
When automounting a volume we should only look at the
VolCatInfo.InChanger flag when we are operating on an autochanger.

Fixes #647: Automatic mount of disk volumes intermittently fails
  • Loading branch information
Marco van Wieringen committed Apr 21, 2016
1 parent 06e1e8a commit c0c3050
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/stored/mount.c
Expand Up @@ -67,8 +67,8 @@ bool DCR::mount_next_write_volume()
int mode;
DCR *dcr = this;

Dmsg2(150, "Enter mount_next_volume(release=%d) dev=%s\n", dev->must_unload(),
dev->print_name());
Dmsg2(150, "Enter mount_next_volume(release=%d) dev=%s\n",
dev->must_unload(), dev->print_name());

init_device_wait_timers(dcr);

Expand Down Expand Up @@ -156,7 +156,7 @@ bool DCR::mount_next_write_volume()
* that is not in the autochanger so that means we need to ask the operator to
* mount it.
*/
if (!VolCatInfo.InChanger) {
if (dev->is_autochanger() && !VolCatInfo.InChanger) {
ask = true;
} else {
ask = retry >= 2;
Expand Down

0 comments on commit c0c3050

Please sign in to comment.