]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix files wiped out by merge
authorKern Sibbald <kern@sibbald.com>
Thu, 13 Aug 2009 18:37:42 +0000 (20:37 +0200)
committerKern Sibbald <kern@sibbald.com>
Thu, 13 Aug 2009 18:37:42 +0000 (20:37 +0200)
bacula/src/stored/lock.c
bacula/src/stored/wait.c

index 40a134b0dc84003780802de6c9bd483cbf1416b1..a1e7aa69b60261619867d4063327480d94c9e7fd 100644 (file)
@@ -332,11 +332,11 @@ const char *DEVICE::print_blocked() const
 /*
  * Check if the device is blocked or not
  */
-bool is_device_unmounted(DEVICE *dev)
+bool DEVICE::is_device_unmounted()
 {
    bool stat;
-   int blocked = dev->blocked();
-   stat = (blocked == BST_UNMOUNTED) ||
-          (blocked == BST_UNMOUNTED_WAITING_FOR_SYSOP);
+   int blk = blocked();
+   stat = (blk == BST_UNMOUNTED) ||
+          (blk == BST_UNMOUNTED_WAITING_FOR_SYSOP);
    return stat;
 }
index 3cdf8e095a7f9dbb9f1d7add33e2324a1b6a8978..573f97bacae8101bc10c9f789150ccdfdf123390 100644 (file)
@@ -69,7 +69,7 @@ int wait_for_sysop(DCR *dcr)
     */
    volume_unused(dcr);
 
-   unmounted = is_device_unmounted(dev);
+   unmounted = dev->is_device_unmounted();
    dev->poll = false;
    /*
     * Wait requested time (dev->rem_wait_sec).  However, we also wake up every
@@ -145,7 +145,7 @@ int wait_for_sysop(DCR *dcr)
       /*
        * Check if user unmounted the device while we were waiting
        */
-      unmounted = is_device_unmounted(dev);
+      unmounted = dev->is_device_unmounted();
 
       if (!unmounted && dev->vol_poll_interval &&
           (total_waited >= dev->vol_poll_interval)) {