- Timestamp:
- Jun 4, 2009, 8:08:57 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.9/mondo/src/common/libmondo-archive.c
r2214 r2215 1441 1441 if (!misc_counter_that_is_not_important) { 1442 1442 update_progress_form(media_usage_comment); 1443 */1444 1443 } 1444 */ 1445 1445 sleep(1); 1446 } else1447 // store set N1448 {1449 sprintf(storing_filelist_fname, FILELIST_FNAME_RAW_SZ,1450 bkpinfo->tmpdir, storing_set_no);1451 sprintf(storing_afioball_fname, AFIOBALL_FNAME_RAW_SZ,1452 bkpinfo->tmpdir, storing_set_no, bkpinfo->zip_suffix);1453 if (g_getfattr) {1454 sprintf(curr_xattr_list_fname, XATTR_LIST_FNAME_RAW_SZ,1455 bkpinfo->tmpdir, storing_set_no);1456 }1457 if (g_getfacl) {1458 sprintf(curr_acl_list_fname, ACL_LIST_FNAME_RAW_SZ,1459 bkpinfo->tmpdir, storing_set_no);1460 }1461 1462 log_msg(2, "Storing set %d", storing_set_no);1463 while (!does_file_exist(storing_filelist_fname)1464 || !does_file_exist(storing_afioball_fname)) {1465 log_msg(2,1466 "Warning - either %s or %s doesn't exist yet. I'll pause 5 secs.",1446 } else 1447 // store set N 1448 { 1449 sprintf(storing_filelist_fname, FILELIST_FNAME_RAW_SZ, 1450 bkpinfo->tmpdir, storing_set_no); 1451 sprintf(storing_afioball_fname, AFIOBALL_FNAME_RAW_SZ, 1452 bkpinfo->tmpdir, storing_set_no, bkpinfo->zip_suffix); 1453 if (g_getfattr) { 1454 sprintf(curr_xattr_list_fname, XATTR_LIST_FNAME_RAW_SZ, 1455 bkpinfo->tmpdir, storing_set_no); 1456 } 1457 if (g_getfacl) { 1458 sprintf(curr_acl_list_fname, ACL_LIST_FNAME_RAW_SZ, 1459 bkpinfo->tmpdir, storing_set_no); 1460 } 1461 1462 log_msg(2, "Storing set %d", storing_set_no); 1463 while (!does_file_exist(storing_filelist_fname) 1464 || !does_file_exist(storing_afioball_fname)) { 1465 log_msg(2, 1466 "Warning - either %s or %s doesn't exist yet. I'll pause 5 secs.", 1467 1467 storing_filelist_fname, storing_afioball_fname); 1468 sleep(5);1469 }1470 mr_asprintf(&media_usage_comment, "%s", percent_media_full_comment());1471 /* copy to CD (scratchdir) ... and an actual CD-R if necessary */1472 if (IS_THIS_A_STREAMING_BACKUP(bkpinfo->backup_media_type)) {1473 register_in_tape_catalog(fileset, storing_set_no, -1,1468 sleep(5); 1469 } 1470 mr_asprintf(&media_usage_comment, "%s", percent_media_full_comment()); 1471 /* copy to CD (scratchdir) ... and an actual CD-R if necessary */ 1472 if (IS_THIS_A_STREAMING_BACKUP(bkpinfo->backup_media_type)) { 1473 register_in_tape_catalog(fileset, storing_set_no, -1, 1474 1474 storing_afioball_fname); 1475 maintain_collection_of_recent_archives(bkpinfo->tmpdir,1475 maintain_collection_of_recent_archives(bkpinfo->tmpdir, 1476 1476 storing_afioball_fname); 1477 iamhere("Writing EXAT files");1478 res +=1479 write_EXAT_files_to_tape(curr_xattr_list_fname,1477 iamhere("Writing EXAT files"); 1478 res += 1479 write_EXAT_files_to_tape(curr_xattr_list_fname, 1480 1480 curr_acl_list_fname); 1481 // archives themselves1482 res +=1483 move_files_to_stream(storing_afioball_fname,1481 // archives themselves 1482 res += 1483 move_files_to_stream(storing_afioball_fname, 1484 1484 NULL); 1485 } else {1486 if (g_getfacl) {1487 if (g_getfattr) {1488 res = move_files_to_cd(storing_filelist_fname,1485 } else { 1486 if (g_getfacl) { 1487 if (g_getfattr) { 1488 res = move_files_to_cd(storing_filelist_fname, 1489 1489 curr_xattr_list_fname, 1490 1490 curr_acl_list_fname, 1491 1491 storing_afioball_fname, NULL); 1492 } else {1493 res = move_files_to_cd(storing_filelist_fname,1492 } else { 1493 res = move_files_to_cd(storing_filelist_fname, 1494 1494 curr_acl_list_fname, 1495 1495 storing_afioball_fname, NULL); 1496 }1497 } else {1498 if (g_getfattr) {1496 } 1497 } else { 1498 if (g_getfattr) { 1499 1499 res = move_files_to_cd(storing_filelist_fname, 1500 1500 curr_xattr_list_fname, 1501 1501 storing_afioball_fname, NULL); 1502 } else {1502 } else { 1503 1503 res = move_files_to_cd(storing_filelist_fname, 1504 1504 storing_afioball_fname, NULL); 1505 } 1505 1506 } 1506 1507 } 1507 } 1508 retval += res; 1509 g_current_progress++; 1510 update_progress_form(media_usage_comment); 1511 mr_free(media_usage_comment); 1512 if (res) { 1513 mr_asprintf(&tmp, 1508 retval += res; 1509 g_current_progress++; 1510 update_progress_form(media_usage_comment); 1511 mr_free(media_usage_comment); 1512 if (res) { 1513 mr_asprintf(&tmp, 1514 1514 "Failed to add archive %ld's files to CD dir\n", 1515 1515 storing_set_no); 1516 log_to_screen(tmp);1517 paranoid_free(tmp);1518 fatal_error1519 ("Is your hard disk full? If not, please send the author the logfile.");1520 }1521 storing_set_no++;1522 // sleep(2);1516 log_to_screen(tmp); 1517 paranoid_free(tmp); 1518 fatal_error 1519 ("Is your hard disk full? If not, please send the author the logfile."); 1520 } 1521 storing_set_no++; 1522 // sleep(2); 1523 1523 } 1524 1524 }
Note:
See TracChangeset
for help on using the changeset viewer.