- Timestamp:
- Sep 23, 2006, 10:37:43 AM (19 years ago)
- Location:
- trunk/mondo
- Files:
-
- 4 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/mondo/mondo/common/libmondo-archive.c
r783 r815 2025 2025 delete_when_done = TRUE; 2026 2026 } else { 2027 // Call ntfsclone (formerly partimagehack) if it's a /dev entry (i.e. a partition to be imaged) 2028 log_msg(2, "bigfile_fname = '%s'", bigfile_fname); 2027 // Call ntfsclone (formerly partimagehack) if it's a /dev entry 2028 // (i.e. a partition to be imaged) 2029 log_msg(2, "bigfile_fname = %s", bigfile_fname); 2029 2030 use_ntfsprog = FALSE; 2030 2031 if (!strncmp(bigfile_fname, "/dev/", 5) … … 2034 2035 "Calling ntfsclone in background because %s is an NTFS partition", 2035 2036 bigfile_fname); 2036 asprintf(&sz_devfile, "/tmp/%d.%d.000", 2037 asprintf(&sz_devfile, "%s/%d.%d.000", 2038 bkpinfo->tmpdir, 2037 2039 (int) (random() % 32768), 2038 2040 (int) (random() % 32768)); -
trunk/mondo/mondo/mondoarchive/main.c
r808 r815 123 123 } 124 124 125 /* Return a string containing the date */ 126 char *mr_date(void) { 127 128 time_t tcurr; 129 130 tcurr = time(NULL); 131 return(ctime(&tcurr)); 132 } 133 134 /*-----------------------------------------------------------*/ 135 136 125 137 126 138 /** … … 167 179 /* Initialize Configuration Structure */ 168 180 mr_archive_init_conf(bkpinfo->mr_conf); 169 log_msg(0, "Start date : %s", get_time()); 181 182 /* initialize log file with time stamp */ 183 unlink(MONDO_LOGFILE); 184 log_msg(0, "Time started: %s", mr_date()); 170 185 171 186 /* make sure PATH environmental variable allows access to mkfs, fdisk, etc. */ … … 179 194 /* Add MONDO_SHARE environment variable for mindi */ 180 195 setenv_mondo_share(); 181 182 unlink(MONDO_LOGFILE);183 196 184 197 /* Configure the bkpinfo structure, global file paths, etc. */ … … 417 430 418 431 run_program_and_log_output("date", 1); 419 log_msg(0, "End date : %s", get_time()); 432 433 /* finalize log file with time stamp */ 434 log_msg(0, "Time finished: %s", mr_date()); 420 435 421 436 if (!g_text_mode) { -
trunk/mondo/mondo/mondoarchive/mondo-cli.c
r808 r815 515 515 * so handled here for the moment */ 516 516 q--; 517 if (*q = '/') {517 if (*q == '/') { 518 518 *q = '\0'; 519 519 } -
trunk/mondo/mondo/mondorestore/mondo-restore.c
r808 r815 1335 1335 "Calling ntfsclone in background because %s is a /dev entry", 1336 1336 outfile_fname); 1337 asprintf(&ntfsprog_fifo, "/tmp/%d.%d.000", (int) (random() % 32768), 1337 asprintf(&ntfsprog_fifo, "%s/%d.%d.000", 1338 bkpinfo->tmpdir, 1339 (int) (random() % 32768), 1338 1340 (int) (random() % 32768)); 1339 1341 mkfifo(ntfsprog_fifo, 0x770);
Note:
See TracChangeset
for help on using the changeset viewer.