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

Last change on this file since 1663 was 1663, checked in by Bruno Cornec, 13 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.2 KB
Line 
1    /* libmondo-tools.h
2     * $Id: libmondo-tools.h 1663 2007-09-27 10:21:18Z bruno $
3     */
4
5#ifndef LIBMONDO_TOOLS_H
6# define LIBMONDO_TOOLS_H
7
8void clean_up_KDE_desktop_if_necessary(void);
9
10long get_time(void);
11int read_cfg_var(char *config_file, char *label, char *value);
12int write_cfg_var(char *config_file, char *label, char *value);
13void reset_bkpinfo();
14#ifdef __FreeBSD__
15void initialize_raidrec(struct vinum_volume *vv);
16#else
17void initialize_raidrec(struct raid_device_record *raidrec);
18#endif
19int some_basic_system_sanity_checks(void);
20
21
22void insmod_crucial_modules(void);
23int find_and_store_mondoarchives_home(char *home_sz);
24
25
26void unmount_supermounts_if_necessary(void);
27void remount_supermounts_if_necessary(void);
28
29int post_param_configuration();
30
31
32int pre_param_configuration();
33
34long free_space_on_given_partition(char *partition);
35
36
37
38void mount_boot_if_necessary(void);
39void unmount_boot_if_necessary(void);
40
41void restart_autofs_if_necessary(void);
42void malloc_libmondo_global_strings(void);
43void free_libmondo_global_strings(void);
44
45double get_kernel_version(void);
46char *get_architecture(void);
47bool does_nonMS_partition_exist(void);
48void stop_magicdev_if_necessary(void);
49void restart_magicdev_if_necessary(void);
50void stop_autofs_if_necessary(void);
51
52#endif /* LIBMONDO_TOOLS_H */
53
Note: See TracBrowser for help on using the repository browser.