source: MondoRescue/branches/2.2.10/mondo/src/mondorestore/mr-externs.h@ 2816

Last change on this file since 2816 was 2816, checked in by Bruno Cornec, 13 years ago

svn merge (in svk) -r 2714:2773 2.2.9 in 2.2.10

r4207@localhost (orig r2716): bruno | 2011-02-03 01:29:51 +0100

  • Increase boot size again to support better fedora 13/14


r4208@localhost (orig r2717): bruno | 2011-02-12 15:43:36 +0100

  • Excluding vmhgfs FS for VMWare guests mounting areas of the host.


r4209@localhost (orig r2718): bruno | 2011-02-18 00:30:35 +0100
-Extend EXTRA-SIZE for Debian 6.0 (at least)


r4210@localhost (orig r2719): bruno | 2011-02-18 00:45:40 +0100

  • Fix #462 (removes temp dir if analyze-my-lvm launched in stand alonae mode)


r4213@localhost (orig r2722): bruno | 2011-02-25 18:44:47 +0100

  • Fixes for RHEL6 support at least around dm extensions, bnx2x and cp210x dependencies


r4214@localhost (orig r2723): bruno | 2011-02-25 19:00:17 +0100

  • Adds a restore quiet option


r4215@localhost (orig r2724): bruno | 2011-02-25 19:43:50 +0100

  • Adds support for dm-log used on RHEL6 as well.


r4216@localhost (orig r2725): bruno | 2011-02-25 21:26:54 +0100

  • Update mindi-busybox to 1.18.3 to avoid problems with the tar command which is now failing on recent versions with busybox 1.7.3


r4217@localhost (orig r2726): bruno | 2011-02-26 11:38:29 +0100

  • Fix error introduced in previous patch in the if/then/else case without member in the then


r4218@localhost (orig r2727): bruno | 2011-02-26 12:05:33 +0100

  • With mindi-busybox 1.18.3 the syntax of openvt changed. This patch keeps a compatible init script for both previous and current version.


r4219@localhost (orig r2728): bruno | 2011-02-26 15:27:40 +0100

  • Latest lvdisplay print MiB instead of MB. Impact on analyze-my-lvm fixed.


r4220@localhost (orig r2729): bruno | 2011-02-26 16:39:32 +0100

  • Adds feature rpc to mindi-busybox in case of need



r4221@localhost (orig r2730): bruno | 2011-02-26 16:42:43 +0100

  • Adds the rebot command to the list of mandatory ones at restore time


r4222@localhost (orig r2731): bruno | 2011-02-26 17:37:13 +0100

  • Adds functions and /bin/loadkeys (new location) to minimal set of commands to have
  • provides a makemessage option to mindi and this function now works with pbdistrocheck
  • Do not create an error when a phys device has 0 size and is a /dev/dm-* device


r4223@localhost (orig r2732): bruno | 2011-02-26 19:07:43 +0100

  • Syntax fix


r4224@localhost (orig r2733): bruno | 2011-02-26 19:51:16 +0100

  • Fix test on dm which was made in wrong sense
  • Adds a driver to allow raid456 to work


r4225@localhost (orig r2734): bruno | 2011-02-26 20:55:00 +0100

  • Fix 2 redirections issues


r4317@localhost (orig r2737): bruno | 2011-03-13 13:12:57 +0100

  • Add support for libahci driver, mandatory for debian 6.


r4318@localhost (orig r2738): bruno | 2011-03-13 14:46:37 +0100

  • Update from Lester Wade (lester.wade_at_hp.com) incorporating latest ML feedbacks


r4319@localhost (orig r2739): bruno | 2011-03-13 17:49:15 +0100

  • Updated Lab for TES 2011


r4323@localhost (orig r2743): bruno | 2011-03-20 01:37:40 +0100

  • Fix a seg fault bug when using the GUI in case exclude_paths was NULL (mc_at_carreira.com.pt)


r4324@localhost (orig r2744): bruno | 2011-03-20 19:38:14 +0100

  • Adds Arch Linux Keyboard support (mc_at_carreira.com.pt)


r4325@localhost (orig r2745): bruno | 2011-03-20 19:48:01 +0100

  • Avoids coredump again when exclude_path is NULL with mr_make_devlist_from_pathlist (feedback from mc_at_carreira.com.pt)


r4326@localhost (orig r2746): bruno | 2011-03-20 19:39:47 +0100

  • Remove blkid from busybox to solve #435


r4327@localhost (orig r2747): bruno | 2011-03-20 19:43:22 +0100

  • Adds reboot to fix #435


r4328@localhost (orig r2748): bruno | 2011-03-22 00:58:07 +0100

  • Fix Arch Linux kbd printed in log file now instead of screen.


r4329@localhost (orig r2749): bruno | 2011-03-22 00:59:58 +0100

  • Again increase size for boot env to support better fedora 14 and other latest distros


r4356@localhost (orig r2750): bruno | 2011-03-25 19:30:01 +0100

  • Improve Arch Linux support for mindi tools (mc_at_carreira.com.pt)


r4357@localhost (orig r2751): bruno | 2011-03-25 19:48:33 +0100

  • Accept to work with either wodim or cdreord and genisoimage or mkisofs


r4358@localhost (orig r2752): bruno | 2011-03-25 20:20:49 +0100

  • Documents option -v of mondoarchive


r4359@localhost (orig r2753): bruno | 2011-03-29 01:34:30 +0200

  • Use modprobe instead of insmod to load loop, cd, ... modules (in order to force them at rstore time). Also drop very old aes support for mdk 9.2


r4360@localhost (orig r2754): bruno | 2011-03-29 01:38:49 +0200

  • Arch Linux support for boot message of mindi (mc_at_carreira.com.pt) using /etc/arch-release and pacman.log


r4383@localhost (orig r2755): bruno | 2011-04-07 09:49:38 +0200

  • Adds a UdevadmTrigger function at restore time to deal with the various syntax formats changes ddepending on version (mc_at_carreira.com.pt)


r4384@localhost (orig r2756): bruno | 2011-04-07 10:05:24 +0200

  • Increase again sizes for Debian 6 support (victor.gattegno_at_hp.com)


r4385@localhost (orig r2757): bruno | 2011-04-07 10:13:00 +0200
Conform to the report of size really !


r4386@localhost (orig r2758): bruno | 2011-04-07 11:31:12 +0200

  • Improved message for Arch Linux for rebuilding the initrd (mc_at_carreira.com.pt)


r4390@localhost (orig r2759): bruno | 2011-04-12 01:15:00 +0200

  • Typo in Web site


r4392@localhost (orig r2761): bruno | 2011-04-14 00:23:38 +0200

  • Adds download references for latest versions.


r4394@localhost (orig r2763): bruno | 2011-04-16 00:35:08 +0200

  • Adds support for MT back mandatory for OBDR.


r4395@localhost (orig r2764): bruno | 2011-04-20 12:18:46 +0200
Function resize_drive_proportionately_to_suit_new_drives

  • Integrate some mr_asprintf
  • Use systematically long long data types in all computation to match the struct mountlist_reference size member and have correct precision
  • Apply JB general_at_itpsg.com patch to make the partition resizing work properly according to the drive size (keeping all calculation in KB and converting only for display)


r4396@localhost (orig r2765): bruno | 2011-04-21 11:20:58 +0200

  • Remove very old code creating confusing symlinks pico to nano in init (patch from MC). Fix #477


r4397@localhost (orig r2766): bruno | 2011-04-21 11:57:44 +0200

  • text's are properly centered in open_and_list_dir (Patch from Chucky). Fix #404.


r4398@localhost (orig r2767): bruno | 2011-04-21 12:49:40 +0200

  • Attempt to fix #432 with a better message at a start.


r4399@localhost (orig r2768): bruno | 2011-04-21 13:00:37 +0200

Log content of mondo-restore.cfg


r4400@localhost (orig r2769): bruno | 2011-04-21 13:48:52 +0200

  • Introduce a new bkpinfo member (subdir) to support storing the subdir under which ISO images are stored on an external HDD. Should fix mostly #433.


r4401@localhost (orig r2770): bruno | 2011-04-21 14:14:52 +0200

  • Fix compilation issues due to level of visibility of functions


r4402@localhost (orig r2771): bruno | 2011-04-22 01:49:03 +0200

  • Adds GUI support for compresion type. Fix half of #468.


r4403@localhost (orig r2772): bruno | 2011-04-22 02:00:07 +0200

  • Adds support of ext attr through the GUI. Fix second part of #468


r4404@localhost (orig r2773): bruno | 2011-04-22 02:22:24 +0200

  • Propose more variables in the mindi.conf example
  • More explicit messages when size unsufficient in mindi for kernel + initrd as per #471
  • Better loging of labeling in mondo when in nuke mode


  • Property svn:keywords set to Id
File size: 4.4 KB
Line 
1/*
2 * $Id: mr-externs.h 2816 2011-04-29 13:42:55Z bruno $
3 *
4 * mondo-restore.c's externs
5 *
6 */
7
8#define SIZE 730000 * 1024 /* Size for ISO's stops -1 */
9#define ARCHIVES_PATH MNT_CDROM"/archives"
10#define BIGGIELIST ARCHIVES_PATH"/biggielist.txt"
11
12#ifdef __FreeBSD__
13#define raid_device_record vinum_volume
14#endif
15
16extern bool ask_me_yes_or_no(char *);
17extern char *calc_checksum_of_file(char *);
18extern int closein_tape();
19extern void close_evalcall_form(void);
20extern char *call_program_and_get_last_line_of_output(char *,bool);
21extern void close_progress_form(void);
22extern long count_lines_in_file(char *);
23extern bool does_file_exist(char *);
24extern int does_partition_exist(const char *device, int partno);
25extern int do_my_funky_lvm_stuff(bool, bool);
26extern int edit_filelist(struct s_node *);
27extern int edit_mountlist(char *mountlist_fname, struct mountlist_itself *,
28 struct raidlist_itself *);
29extern int format_everything(struct mountlist_itself *, bool, struct raidlist_itself *);
30extern int format_device(char *, char *, struct raidlist_itself *);
31extern void finish(int);
32extern void free_filelist(struct s_node *);
33extern long get_time(void);
34extern bool get_isodir_info(char *, char *, char *, char *, bool);
35extern void fatal_error(char *);
36extern void initialize_raid_record(struct raid_device_record *);
37extern bool is_this_device_mounted(char *);
38extern off_t length_of_file(char *);
39extern char *last_line_of_file(char *);
40extern struct s_node *load_filelist(char *);
41extern void log_tape_pos(void);
42extern void initialize_raidrec(struct raid_device_record *);
43extern void log_file_end_to_screen(char *, char *);
44extern void log_to_screen(const char *fmt, ...);
45extern void mvaddstr_and_log_it(int, int, char *);
46extern int make_dummy_partitions(char *, int);
47extern int make_hole_for_file(char *);
48extern int make_list_of_drives(struct mountlist_itself *,
49 struct list_of_disks *);
50extern bool mountlist_contains_raid_devices(struct mountlist_itself *);
51extern void open_evalcall_form(char *);
52extern void open_progress_form(char *, char *, char *, char *, long);
53extern int openin_cdstream();
54extern int openin_tape();
55extern int partition_device(char *, int, int, char *, long);
56extern int partition_device_with_fdisk(char *, int, int, char *, long);
57extern int partition_device_with_parted(char *, int, int, char *, long);
58extern int partition_drive(struct mountlist_itself *, char *);
59extern int partition_everything(struct mountlist_itself *);
60extern void popup_and_OK(char *);
61extern char *popup_and_get_string(char *, char *, char *);
62extern void setup_newt_stuff(void);
63extern void init_bkpinfo();
64extern char *read_cfg_var(char *, char *);
65extern int read_file_from_stream_to_file(char *,
66 long long);
67extern int read_file_from_stream_to_stream(FILE *,
68 long long);
69extern int read_file_from_stream_FULL(char *, FILE *,
70 long long);
71extern int read_header_block_from_stream(long long *, char *, int *);
72extern void save_filelist(struct s_node *, char *);
73extern void strip_spaces(char *);
74extern int strcmp_inc_numbers(char *, char *);
75extern char *slice_fname(long, long, char *, char *);
76extern int stop_raid_device(char *);
77extern int stop_all_raid_devices(struct mountlist_itself *);
78extern void update_evalcall_form(int);
79extern void update_progress_form(char *);
80extern int verify_tape_backups();
81extern char which_restore_mode(void);
82extern char *which_format_command_do_i_need(char *);
83extern int write_cfg_var(char *, char *, char *);
84extern void wrong_marker(int, int);
85extern void resize_drive_proportionately_to_suit_new_drives(struct
86 mountlist_itself
87 *mountlist,
88 char
89 *drive_name);
90extern void resize_mountlist_proportionately_to_suit_new_drives(struct
91 mountlist_itself
92 *mountlist);
93
94/**************************************************************************
95 * Externals yummmy!!! *
96 **************************************************************************/
97extern long g_maximum_progress;
98extern long g_current_progress;
99extern long g_start_time;
100extern int g_currentY;
101extern int g_current_media_number; /* set to 1 in mondo-tools.c (tape) */
102extern long long g_tape_posK;
103extern FILE *g_tape_stream;
104extern bool g_text_mode;
105extern int fput_string_one_char_at_a_time(FILE *, char *);
106extern char *evaluate_mountlist(struct mountlist_itself *mountlist);
107
108
109#ifdef __FreeBSD__
110#undef raid_device_record
111#endif
Note: See TracBrowser for help on using the repository browser.