Changeset 687 in MondoRescue for trunk/mondo/mondo/common/libmondo-archive.c
- Timestamp:
- Jul 17, 2006, 3:39:42 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/mondo/mondo/common/libmondo-archive.c
r539 r687 1217 1217 mvaddstr_and_log_it(g_currentY++, 74, "Done."); 1218 1218 if (IS_THIS_A_STREAMING_BACKUP(bkpinfo->backup_media_type)) { 1219 write_header_block_to_stream( 0, "start-of-tape",1219 write_header_block_to_stream((off_t)0, "start-of-tape", 1220 1220 BLK_START_OF_TAPE); 1221 write_header_block_to_stream( 0, "start-of-backup",1221 write_header_block_to_stream((off_t)0, "start-of-backup", 1222 1222 BLK_START_OF_BACKUP); 1223 1223 } … … 1713 1713 log_to_screen("%s...OK", message_to_screen); 1714 1714 if (!run_program_and_log_output 1715 ("tail -n10 /var/log/mondo-archive.log | fgrep':-('",1715 ("tail -n10 /var/log/mondo-archive.log | grep -F ':-('", 1716 1716 1)) { 1717 1717 log_to_screen … … 1981 1981 bool delete_when_done; 1982 1982 bool use_ntfsprog; 1983 /*@ long long ****************************************** */ 1984 long long biggie_fsize; 1983 off_t biggie_fsize; 1985 1984 1986 1985 assert(bkpinfo != NULL); … … 2081 2080 if (IS_THIS_A_STREAMING_BACKUP(bkpinfo->backup_media_type)) { 2082 2081 tmp = calc_checksum_of_file(bigfile_fname); 2083 write_header_block_to_stream( 0, tmp, BLK_STOP_A_BIGGIE);2082 write_header_block_to_stream((off_t)0, tmp, BLK_STOP_A_BIGGIE); 2084 2083 paranoid_free(tmp); 2085 2084 } … … 2259 2258 2260 2259 if (IS_THIS_A_STREAMING_BACKUP(bkpinfo->backup_media_type)) { 2261 write_header_block_to_stream( 0, "start-of-afioballs",2260 write_header_block_to_stream((off_t)0, "start-of-afioballs", 2262 2261 BLK_START_AFIOBALLS); 2263 2262 #if __FreeBSD__ == 5 … … 2268 2267 res = make_afioballs_and_images_OLD(bkpinfo, mrconf); 2269 2268 #endif 2270 write_header_block_to_stream( 0, "stop-afioballs",2269 write_header_block_to_stream((off_t)0, "stop-afioballs", 2271 2270 BLK_STOP_AFIOBALLS); 2272 2271 } else { … … 2344 2343 res += write_EXAT_files_to_tape(bkpinfo, xattr_fname, acl_fname); 2345 2344 asprintf(&blah, "%ld", count_lines_in_file(biggielist)); 2346 write_header_block_to_stream( 0, blah, BLK_START_BIGGIEFILES);2345 write_header_block_to_stream((off_t)0, blah, BLK_START_BIGGIEFILES); 2347 2346 paranoid_free(blah); 2348 2347 } … … 2354 2353 2355 2354 if (IS_THIS_A_STREAMING_BACKUP(bkpinfo->backup_media_type)) { 2356 write_header_block_to_stream( 0, "end-of-biggiefiles",2355 write_header_block_to_stream((off_t)0, "end-of-biggiefiles", 2357 2356 BLK_STOP_BIGGIEFILES); 2358 2357 } … … 2720 2719 char *curr_file, *cf; 2721 2720 /*@ long long ****************************************************** */ 2722 long long length_of_incoming_file =0;2721 off_t length_of_incoming_file = (off_t)0; 2723 2722 t_archtype type; 2724 2723 va_list ap; … … 2755 2754 paranoid_free(curr_file); 2756 2755 /* write closing header */ 2757 write_header_block_to_stream( 0, "finished-writing-file", stop_chr);2756 write_header_block_to_stream((off_t)0, "finished-writing-file", stop_chr); 2758 2757 } 2759 2758 va_end(ap); … … 3035 3034 3036 3035 /*@ long long ************************************************** */ 3037 long long totalread =0;3038 long long totallength =0;3039 long longlength;3036 off_t totalread = (off_t)0; 3037 off_t totallength = (off_t)0; 3038 off_t length; 3040 3039 3041 3040 /*@ int ******************************************************** */ … … 3080 3079 strcpy (tmp, call_program_and_get_last_line_of_output(command)); 3081 3080 log_it("res of it = %s", tmp); 3082 totallength = atoll(tmp);3081 totallength = (off_t)atoll(tmp); 3083 3082 } else { 3084 3083 file_to_openin = biggie_filename;
Note:
See TracChangeset
for help on using the changeset viewer.