From: <ke...@us...> - 2008-07-04 16:58:25
|
Revision: 7306 http://bacula.svn.sourceforge.net/bacula/?rev=7306&view=rev Author: kerns Date: 2008-07-04 09:58:35 -0700 (Fri, 04 Jul 2008) Log Message: ----------- Add debug Modified Paths: -------------- trunk/bacula/src/stored/label.c trunk/bacula/src/stored/mount.c Modified: trunk/bacula/src/stored/label.c =================================================================== --- trunk/bacula/src/stored/label.c 2008-07-04 14:22:42 UTC (rev 7305) +++ trunk/bacula/src/stored/label.c 2008-07-04 16:58:35 UTC (rev 7306) @@ -324,6 +324,10 @@ Dmsg0(150, "write_volume_label()\n"); empty_block(dcr->block); + if (*VolName == 0) { + Pmsg0(0, "=== ERROR: write_new_volume_label_to_dev called with NULL VolName\n"); + goto bail_out; + } if (relabel) { volume_unused(dcr); /* mark current volume unused */ Modified: trunk/bacula/src/stored/mount.c =================================================================== --- trunk/bacula/src/stored/mount.c 2008-07-04 14:22:42 UTC (rev 7305) +++ trunk/bacula/src/stored/mount.c 2008-07-04 16:58:35 UTC (rev 7306) @@ -624,7 +624,8 @@ /* Create a new Volume label and write it to the device */ if (!write_new_volume_label_to_dev(dcr, VolumeName, pool_name, false, /* no relabel */ false /* defer DVD label */)) { - Dmsg0(150, "!write_vol_label\n"); + Dmsg2(150, "write_vol_label failed. vol=%s, pool=%s\n", + VolumeName, pool_name); if (opened) { mark_volume_in_error(); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |