source: MondoRescue/branches/stable/mondo/src/mondorestore/mondo-restore-EXT.h @ 1663

Last change on this file since 1663 was 1663, checked in by Bruno Cornec, 12 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
  • 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.0 KB
1/* mondo-restore-EXT.h */
3#ifdef __FreeBSD__
4#define raid_device_record vinum_volume
7extern bool g_sigpipe_caught;
8extern bool g_ISO_restore_mode; /* are we in Iso Mode? */
9extern bool g_I_have_just_nuked;
10extern char *g_tmpfs_mountpt;
11extern char *g_isodir_device;
12extern char *g_isodir_format;
14extern char *g_biggielist_txt;
15extern char *g_filelist_full;
16extern char *g_biggielist_pot;
17extern char *g_filelist_potential;
18extern char *g_filelist_imagedevs;
19extern char *g_filelist_restthese;
20extern char *g_biggielist_restthese;
21extern char *g_imagedevs_restthese;
22extern char *g_mondo_cfg_file;
23extern char *g_mountlist_fname;
26extern void ask_about_these_imagedevs(char *, char *);
27extern int catchall_mode(struct mountlist_itself *,
28                         struct raidlist_itself *);
29extern void sort_mountlist_by_device(struct mountlist_itself *);
30extern int interactive_mode(struct mountlist_itself *,
31                            struct raidlist_itself *);
32extern int nuke_mode(struct mountlist_itself *,
33                     struct raidlist_itself *);
34extern int compare_mode(struct mountlist_itself *,
35                        struct raidlist_itself *);
36extern int iso_mode(
37                    struct mountlist_itself *mountlist,
38                    struct raidlist_itself *raidlist, bool nuke_me_please);
39extern int load_mountlist(struct mountlist_itself *, char *);
40extern int load_raidtab_into_raidlist(struct raidlist_itself *, char *);
41extern int restore_mode(struct mountlist_itself *,
42                        struct raidlist_itself *);
43extern int save_raidlist_to_raidtab(struct raidlist_itself *, char *);
44extern void process_raidtab_line(FILE *, struct raid_device_record *,
45                                 char *, char *);
46extern int restore_a_biggiefile_from_CD(long,
47                                        struct s_node *);
48extern int restore_a_biggiefile_from_stream(char *,
49                                            long, char *, long long,
50                                            struct s_node *);
51extern int restore_a_tarball_from_CD(char *, int, struct s_node *, struct s_bkpinfo *);
52extern int restore_a_tarball_from_stream(char *, int,
53                                         struct s_node *, long long);
54extern int restore_all_biggiefiles_from_CD(
55                                           struct s_node *);
56extern int restore_all_biggiefiles_from_stream(
57                                               struct s_node *);
58extern int restore_all_tarballs_from_CD(
59                                        struct s_node *);
60extern int restore_all_tarballs_from_stream(
61                                            struct s_node *);
62extern int restore_everything(struct s_node *);
63extern int restore_live_from_monitas_server(char *,
64                                            char *, char *);
65extern int restore_to_live_filesystem();
66extern void swap_mountlist_entries(struct mountlist_itself *, int, int);
67extern void sort_mountlist_by_mountpoint(struct mountlist_itself *, bool);
68extern void sort_mountlist_by_device(struct mountlist_itself *);
69extern void twenty_seconds_til_yikes(void);
70extern int run_raw_mbr(bool offer_to_hack_scripts, char *bd);
71extern int save_mountlist_to_disk(struct mountlist_itself *, char *);
72extern void save_raidrec_to_file(struct raid_device_record *raidrec,
73                                 FILE * fout);
74extern int save_raidlist_to_raidtab(struct raidlist_itself *raidlist,
75                                    char *fname);
76extern int what_number_cd_is_this();
78#ifdef __FreeBSD__
79#undef raid_device_record
Note: See TracBrowser for help on using the repository browser.