- fprintf(mailf,
- "*** A TAPE ERROR OCCURRED: %s.\n", tapestart_error);
- fputs("Some dumps may have been left in the holding disk.\n", mailf);
- fprintf(mailf,
- "Run amflush%s to flush them to tape.\n",
- amflush_run ? " again" : "");
+ g_fprintf(mailf,
+ _("*** A TAPE ERROR OCCURRED: %s.\n"), tapestart_error);
+ }
+ if (cmdlogfname == 1) {
+ if(degraded_mode) {
+ fputs(_("Some dumps may have been left in the holding disk.\n"),
+ mailf);
+ g_fprintf(mailf,"\n");
+ }
+ } else {
+ GSList *holding_list, *holding_file;
+ off_t h_size = 0, mh_size;
+
+ holding_list = holding_get_files_for_flush(NULL);
+ for(holding_file=holding_list; holding_file != NULL;
+ holding_file = holding_file->next) {
+ mh_size = holding_file_size((char *)holding_file->data, 1);
+ if (mh_size > 0)
+ h_size += mh_size;
+ }
+
+ if (h_size > 0) {
+ g_fprintf(mailf,
+ _("There are %lld%s of dumps left in the holding disk.\n"),
+ (long long)h_size, displayunit);
+ if (getconf_boolean(CNF_AUTOFLUSH)) {
+ g_fprintf(mailf, _("They will be flushed on the next run.\n"));
+ } else {
+ g_fprintf(mailf, _("Run amflush to flush them to tape.\n"));
+ }
+ g_fprintf(mailf,"\n");
+ } else if (degraded_mode) {
+ g_fprintf(mailf, _("No dumps are left in the holding disk. %lld%s\n"), (long long)h_size, displayunit);
+ g_fprintf(mailf,"\n");
+ }