source: MondoRescue/branches/stable/mondo/src/common/libmondo-files.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: 1.5 KB
Line 
1/* libmondo-files.h
2 * $Id: libmondo-files.h 1663 2007-09-27 10:21:18Z bruno $
3 */
4
5#include "crcttt.h"
6
7
8unsigned int updcrc(unsigned int crc, unsigned int c);
9unsigned int updcrcr(unsigned int crc, unsigned int c);
10char *calc_checksum_of_file(char *filename);
11long count_lines_in_file(char *filename);
12bool does_file_exist(char *filename);
13void exclude_nonexistent_files(char *inout);
14int figure_out_kernel_path_interactively_if_necessary(char *kernel);
15char *find_home_of_exe(char *fname);
16int get_trackno_from_logfile(char *logfile);
17int grab_percentage_from_last_line_of_file(char *filename);
18char *last_line_of_file(char *filename);
19off_t length_of_file(char *filename);
20int make_hole_for_file(char *outfile_fname);
21void make_list_of_files_to_ignore(char *ignorefiles_fname,
22 char *filelist_fname,
23 char *cklist_fname);
24long noof_lines_that_match_wildcard(char *filelist_fname, char *wildcard);
25void register_pid(pid_t pid, char *name_str);
26long size_of_all_biggiefiles_K();
27long long space_occupied_by_cd(char *mountpt);
28int whine_if_not_found(char *fname);
29int write_one_liner_data_file(char *fname, char *contents);
30
31void copy_mondo_and_mindi_stuff_to_scratchdir();
32void store_nfs_config();
33void estimate_noof_media_required(long);
34bool is_this_file_compressed(char *);
35
36
37
38
39
40
41
42
43int make_hole_for_dir(char *outdir_fname);
44long size_of_partition_in_mountlist_K(char *tmpdir, char *dev);
45int make_grub_install_scriptlet(char *outfile);
46
47int read_one_liner_data_file(char *fname, char *contents);
48int mode_of_file(char *fname);
Note: See TracBrowser for help on using the repository browser.