From: Kern Sibbald Date: Fri, 15 Jun 2018 20:21:52 +0000 (+0200) Subject: Make out of freespace non-fatal for removable devices -- i.e. behaves like tape X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;ds=sidebyside;p=bacula%2Fbacula Make out of freespace non-fatal for removable devices -- i.e. behaves like tape --- diff --git a/bacula/src/stored/block.c b/bacula/src/stored/block.c index 92c56ecd6b..1a0ef85472 100644 --- a/bacula/src/stored/block.c +++ b/bacula/src/stored/block.c @@ -301,8 +301,12 @@ bool DCR::write_block_to_dev() if (dev->dev_errno == ENOSPC) { dev->update_freespace(); if (dev->is_freespace_ok() && dev->free_space < dev->min_free_space) { + int mtype = M_FATAL; dev->set_nospace(); - Jmsg(jcr, M_FATAL, 0, _("Out of freespace caused End of Volume \"%s\" at %s on device %s. Write of %u bytes got %d.\n"), + if (dev->is_removable()) { + mtype = M_INFO; + } + Jmsg(jcr, mtype, 0, _("Out of freespace caused End of Volume \"%s\" at %s on device %s. Write of %u bytes got %d.\n"), dev->getVolCatName(), dev->print_addr(ed1, sizeof(ed1)), dev->print_name(), wlen, stat); } else {