]> git.sur5r.net Git - bacula/bacula/commitdiff
Missed commiting one file last time
authorKern Sibbald <kern@sibbald.com>
Thu, 13 Aug 2009 18:28:12 +0000 (20:28 +0200)
committerKern Sibbald <kern@sibbald.com>
Thu, 13 Aug 2009 18:28:12 +0000 (20:28 +0200)
bacula/src/stored/reserve.c

index 742c9b512b11fcbd586ec6ad3277787a941f962a..2326d1bb9e0fc33167f0dac100ce71bc06461b6b 100644 (file)
@@ -761,7 +761,7 @@ static bool reserve_device_for_read(DCR *dcr)
 
    dev->dlock();  
 
-   if (is_device_unmounted(dev)) {             
+   if (dev->is_device_unmounted()) {             
       Dmsg1(dbglvl, "Device %s is BLOCKED due to user unmount.\n", dev->print_name());
       Mmsg(jcr->errmsg, _("3601 JobId=%u device %s is BLOCKED due to user unmount.\n"),
            jcr->JobId, dev->print_name());
@@ -828,7 +828,7 @@ static bool reserve_device_for_append(DCR *dcr, RCTX &rctx)
    }
 
    /* If device is unmounted, we are out of luck */
-   if (is_device_unmounted(dev)) {
+   if (dev->is_device_unmounted()) {
       Mmsg(jcr->errmsg, _("3604 JobId=%u device %s is BLOCKED due to user unmount.\n"), 
          jcr->JobId, dev->print_name());
       Dmsg1(dbglvl, "%s", jcr->errmsg);