Hey
Following is a trivial patch to print the device name in the message telling
you despooling has finished. we have several tape drives and this makes it a
lot easier to see which device the data was spooled to.
>From 0a9803c981f216cdc997fbcc462eb5d0eb7091b9 Mon Sep 17 00:00:00 2001
From: Anders Ossowicki <a...@novozymes.com>
Date: Mon, 5 Dec 2011 13:19:29 +0100
Subject: [PATCH] Print device name in despool message
---
bacula/src/stored/spool.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/bacula/src/stored/spool.c b/bacula/src/stored/spool.c
index f152ba1..2d3e41b 100644
--- a/bacula/src/stored/spool.c
+++ b/bacula/src/stored/spool.c
@@ -337,9 +337,10 @@ static bool despool_data(DCR *dcr, bool commit)
despool_elapsed = 1;
}
- Jmsg(jcr, M_INFO, 0, _("Despooling elapsed time = %02d:%02d:%02d, Transfer
rate = %s Bytes/second\n"),
+ Jmsg(jcr, M_INFO, 0, _("Despooling elapsed time = %02d:%02d:%02d, Transfer
rate = %s Bytes/second, Device = %s\n"),
despool_elapsed / 3600, despool_elapsed % 3600 / 60, despool_elapsed
% 60,
- edit_uint64_with_suffix(jcr->dcr->job_spool_size / despool_elapsed,
ec1));
+ edit_uint64_with_suffix(jcr->dcr->job_spool_size / despool_elapsed,
ec1),
+ dcr->dev->print_name());
dcr->block = block; /* reset block */
--
1.7.5.4
--
Anders Ossowicki
522 Data Management, Novozymes A/S
>From 0a9803c981f216cdc997fbcc462eb5d0eb7091b9 Mon Sep 17 00:00:00 2001
From: Anders Ossowicki <a...@novozymes.com>
Date: Mon, 5 Dec 2011 13:19:29 +0100
Subject: [PATCH] Print device name in despool message
---
bacula/src/stored/spool.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/bacula/src/stored/spool.c b/bacula/src/stored/spool.c
index f152ba1..2d3e41b 100644
--- a/bacula/src/stored/spool.c
+++ b/bacula/src/stored/spool.c
@@ -337,9 +337,10 @@ static bool despool_data(DCR *dcr, bool commit)
despool_elapsed = 1;
}
- Jmsg(jcr, M_INFO, 0, _("Despooling elapsed time = %02d:%02d:%02d, Transfer rate = %s Bytes/second\n"),
+ Jmsg(jcr, M_INFO, 0, _("Despooling elapsed time = %02d:%02d:%02d, Transfer rate = %s Bytes/second, Device = %s\n"),
despool_elapsed / 3600, despool_elapsed % 3600 / 60, despool_elapsed % 60,
- edit_uint64_with_suffix(jcr->dcr->job_spool_size / despool_elapsed, ec1));
+ edit_uint64_with_suffix(jcr->dcr->job_spool_size / despool_elapsed, ec1),
+ dcr->dev->print_name());
dcr->block = block; /* reset block */
--
1.7.5.4
------------------------------------------------------------------------------
Cloud Services Checklist: Pricing and Packaging Optimization
This white paper is intended to serve as a reference, checklist and point of
discussion for anyone considering optimizing the pricing and packaging model
of a cloud services business. Read Now!
http://www.accelacomm.com/jaw/sfnl/114/51491232/
_______________________________________________
Bacula-devel mailing list
Bacula-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-devel