a Volume not in the autochanger unless requested to do so.
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/branches/Branch-2.4@7320
91ce42f0-d328-0410-95d8-
f526ca767f89
prune_list.num_ids = 0; /* reset count */
}
ok = is_volume_purged(ua, &lmr);
+
+ /*
+ * Check if this volume is available (InChanger + StorageId)
+ * If not, just skip this volume and try the next one
+ */
+ if (ok && InChanger) {
+ if (!lmr.InChanger || (lmr.StorageId != mr->StorageId)) {
+ ok = false; /* skip this volume, ie not loadable */
+ }
+ }
+
/*
* If purged and not moved to another Pool,
* then we stop pruning and take this volume.
General:
05Jul08
+kes Apply Eric's patch to ensure that autoprune does not return
+ a Volume not in the autochanger unless requested to do so.
kes Correct bat restore display of multiple drives. This fixes
bug #1117.
kes Do find_a_volume() each time an unload is done. This