source: MondoRescue/trunk/mondo/mondo/mondorestore/mondoprep.h@ 274

Last change on this file since 274 was 59, checked in by bcornec, 19 years ago

Trunk: indent on all source files

  • Property svn:keywords set to Id
File size: 3.9 KB
Line 
1/***************************************************************************
2 mondoprep.h - description
3 -------------------
4 begin : Sat Apr 20 2002
5 copyright : (C) 2002 by Stan Benoit
6 email : troff@nakedsoul.org
7 cvsid : $Id: mondoprep.h 59 2005-10-10 23:34:31Z bcornec $
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/** Externals **************************************************************/
21
22extern long g_maximum_progress, g_current_progress, g_start_time;
23extern int g_currentY, g_current_cd_number;
24extern char *g_tape_device;
25extern void finish(int);
26extern void setup_newt_stuff(void);
27extern char which_restore_mode(void);
28extern bool ask_me_yes_or_no(char *);
29extern long get_phys_size_of_drive(char *);
30//extern void log_to_screen (char *);
31extern void update_progress_form(char *);
32extern void open_progress_form(char *, char *, char *, char *, long);
33extern void close_progress_form(void);
34extern void popup_and_OK(char *);
35extern bool popup_and_get_string(char *, char *, char *, int);
36extern long get_time(void);
37extern bool is_this_device_mounted(char *);
38extern int does_partition_exist(const char *device, int partno);
39extern int strcmp_inc_numbers(char *, char *);
40extern long count_lines_in_file(char *);
41extern long long length_of_file(char *);
42extern long noof_lines_that_match_wildcard(char *, char *);
43//extern char *slice_fname (long, long, bool, char *);
44extern char *last_line_of_file(char *);
45extern void log_file_end_to_screen(char *, char *);
46extern int zero_out_a_device(char *);
47extern void mvaddstr_and_log_it(int, int, char *);
48extern bool does_file_exist(char *);
49
50
51/** locals **********************************************************/
52int extrapolate_mountlist_to_include_raid_partitions(struct mountlist_itself
53 *, struct mountlist_itself
54 *);
55bool mountlist_contains_raid_devices(struct mountlist_itself *);
56int start_raid_device(char *);
57int stop_raid_device(char *);
58int start_all_raid_devices(struct mountlist_itself *);
59int stop_all_raid_devices(struct mountlist_itself *);
60int format_everything(struct mountlist_itself *, bool);
61int partition_device(FILE *, const char *, int, int, const char *,
62 long long);
63int partition_device_with_parted(FILE *, const char *, int, int,
64 const char *, long long);
65int partition_device_with_fdisk(FILE *, const char *, int, int,
66 const char *, long long);
67int format_device(char *, char *);
68int partition_drive(struct mountlist_itself *, char *);
69int partition_everything(struct mountlist_itself *);
70int do_my_funky_lvm_stuff(bool, bool);
71int which_format_command_do_i_need(char *, char *);
72int make_dummy_partitions(FILE *, char *, int);
73int make_list_of_drives(struct mountlist_itself *,
74 char drivelist[ARBITRARY_MAXIMUM][MAX_STR_LEN]);
75int set_partition_type(FILE *, const char *, int, const char *, long long);
76void resize_drive_proportionately_to_suit_new_drives(struct mountlist_itself
77 *mountlist,
78 char *drive_name);
79void resize_mountlist_proportionately_to_suit_new_drives(struct
80 mountlist_itself
81 *mountlist);
82
83
84char *truncate_to_drive_name(char *partition);
85void create_mountlist_for_drive(struct mountlist_itself *mountlist,
86 char *drive_name,
87 struct mountlist_reference *drivemntlist);
Note: See TracBrowser for help on using the repository browser.