Changeset 2321 in MondoRescue for branches/2.2.10/mondo/src/common/libmondo-stream.c
- Timestamp:
- Aug 18, 2009, 2:37:55 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.2.10/mondo/src/common/libmondo-stream.c
r2316 r2321 513 513 * assumed to be a fileset, otherwise if it contains "slice" it's a slice, 514 514 * otherwise we generate a fatal_error(). 515 * @param td The current @c bkpinfo->tempdir (file will be placed in <tt>td</tt>/tmpfs/backcatalog/).516 515 * @param latest_fname The file to place in the collection. 517 516 * @return 0, always. … … 519 518 * @bug The detection won't work for uncompressed afioballs (they end in ".afio", no dot afterwards). // Not true. They end in '.' -Hugo 520 519 */ 521 int maintain_collection_of_recent_archives(char * td, char *latest_fname)520 int maintain_collection_of_recent_archives(char *latest_fname) 522 521 { 523 522 long long final_alleged_writeK, final_projected_certain_writeK, … … 543 542 } else { 544 543 log_it("fname = %s", latest_fname); 545 fatal_error 546 ("Unknown type. Internal error in maintain_collection_of_recent_archives()"); 547 } 548 mr_asprintf(&tmpdir, "%s/tmpfs/backcatalog", td); 544 fatal_error("Unknown type. Internal error in maintain_collection_of_recent_archives()"); 545 } 546 mr_asprintf(&tmpdir, "%s/tmpfs/backcatalog", bkpinfo->tmpdir); 549 547 mkdir(tmpdir, 0x700); 550 548 mr_asprintf(&command, "cp -f %s %s", latest_fname, tmpdir);
Note:
See TracChangeset
for help on using the changeset viewer.