source: MondoRescue/branches/stable/mondo/src/common/libmondo-verify.h@ 1663

Last change on this file since 1663 was 1663, checked in by Bruno Cornec, 17 years ago
  • Fix bug #197 (based on an initial patch of Scott Cummings)
  • Fix a bug where df was using locale to print messages and wasn't filtered correctly
  • mkdtemp checked in configure
  • reset_bkpinfo called as early as possible by both main program.
  • It creates a tmpdir cleanly with mkdtemp in setup_tmpdir subfunction, which takes in account TMPIR and TMP env var. Remains to see what tmpfs does and tests
  • configure.in should also be filtered.
  • Remove g_bkpinfo_DONTUSETHIS
  • remove bkpinfo also from header files
  • Render bkpinfo global (potential issue on thread, but should not be a problem as that structure is indeed static during archive)
  • Apply patch from Andree Leidenfrost, modified a bit to use bkpinfo->tmpdir instead of /tmp or MINDI_CACHE when appropriate. Fix security issues in mondo. Thanks al ot Andree for catching all those issues.
  • /tmp => /var/log for mondorestore.log in mindi
  • Update linux terminfo to fix a color issue (Andree Leidenfrost)
  • Removes useless log file (Andree Leidenfrost)
  • replace vi with find_my_editor during restore (Andree Leidenfrost)
  • sync in bg in mindi (VMWare issue to look at)
  • mindi/mindi-busybox have a different version than mondo for pb
  • PB-SUF also added to spec file
  • Fix a bug for pb build (omission of PB-SUF declaration)

(merge -r1631:1662 $SVN_M/branches/2.2.5)

  • Property svn:keywords set to Id
File size: 3.6 KB
RevLine 
[1]1/***************************************************************************
2 mondoverify.h - description
3 -------------------
4 begin : Mon Apr 22 2002
5 copyright : (C) 2002 by Stan Benoit
6 email : troff@nakedsoul.org
[128]7 cvsid : $Id: libmondo-verify.h 1663 2007-09-27 10:21:18Z bruno $
[1]8 ***************************************************************************/
9
10/***************************************************************************
11 * *
12 * This program is free software; you can redistribute it and/or modify *
13 * it under the terms of the GNU General Public License as published by *
14 * the Free Software Foundation; either version 2 of the License, or *
15 * (at your option) any later version. *
16 * *
17 ***************************************************************************/
18
19
20
21
22 /** externals *************************************************************/
[1663]23int close_tape();
[128]24extern void close_progress_form(void);
25extern long count_lines_in_file(char *);
26extern bool does_file_exist(char *);
27extern void exclude_nonexistent_files(char *);
28extern void fatal_error(char *);
[1663]29extern int find_and_mount_actual_cd(char *);
[128]30extern int find_cdrom_device(char *, bool);
31extern void finish(int);
[1663]32extern int get_last_filelist_number();
[128]33extern long get_time(void);
34extern int grab_percentage_from_last_line_of_file(char *);
35extern char *last_line_of_file(char *);
[684]36extern off_t length_of_file(char *);
[128]37extern void log_file_end_to_screen(char *, char *);
38extern void log_tape_pos(void);
39extern char *marker_to_string(int);
40extern void open_evalcall_form(char *);
41extern void open_progress_form(char *, char *, char *, char *, long);
[1663]42extern int openin_tape();
[128]43extern void popup_and_OK(char *);
44extern bool popup_and_get_string(char *, char *, char *, int);
[1663]45extern int read_file_from_tape_to_file(char *,
[128]46 long long);
47extern int read_header_block_from_tape(long long *, char *, int *);
48extern void setup_newt_stuff(void);
49extern char *slice_fname(long, long, char *, char *);
50extern long long space_occupied_by_cd(char *);
51extern int strcmp_inc_numbers(char *, char *);
52extern char *strip_afio_output_line(char *);
53extern char *trim_empty_quotes(char *);
54extern void update_evalcall_form(int);
55extern void update_progress_form(char *);
56extern int write_data_disks_to_tape(char *);
57extern int write_header_block_to_tape(long long, char *, int);
58extern void wrong_marker(int, int);
[1]59
60
61/** Locals *****************************************************************/
62
63
[1663]64int verify_cd_image();
65int verify_a_tarball(char *);
66int verify_an_afioball_from_CD(char *);
67int verify_an_afioball_from_tape(char *, long long);
68int verify_a_biggiefile_from_tape(char *, long long);
69int verify_afioballs_from_CD();
70int verify_afioballs_from_tape();
71int verify_biggiefiles_from_tape();
72int verify_tape_backups();
73char *vfy_tball_fname(char *, int);
[1]74
75
76
77
78/*---------------------------------------------------------------------*/
79
80
81
82extern FILE *g_tape_stream;
83extern long g_start_time, g_minimum_progress, g_maximum_progress,
[128]84 g_current_progress, g_currentY;
[1]85extern char err_log_lines[NOOF_ERR_LINES][MAX_STR_LEN];
86extern int g_current_media_number;
87
[128]88extern void mvaddstr_and_log_it(int, int, char *);
[1]89
[128]90extern bool ask_me_yes_or_no(char *);
91extern char *calc_checksum_of_file(char *filename);
92extern void center_string(char *, int);
93extern void close_evalcall_form(void);
[1663]94extern int closein_tape();
Note: See TracBrowser for help on using the repository browser.