source: trunk/mondo/mondo/common/libmondo-raid-EXT.h @ 1

Last change on this file since 1 was 1, checked in by bcornec, 14 years ago

Initial import from latest mondo-2.04_cvs_20050503/mindi-1.04_cvs_20050503 on http://www.mondorescue.org

File size: 2.0 KB
Line 
1/* libmondo-raid-EXT.h */
2
3#ifdef __FreeBSD__
4#define raid_device_record vinum_volume
5#endif
6
7extern bool is_this_raid_personality_registered (int raidno);
8extern int which_raid_device_is_using_this_partition (struct raidlist_itself *raidlist,
9                       char *device);
10extern void write_variableINT_to_raid_var_line (struct raid_device_record *raidrec,
11                    int lino, char *label, int value);
12
13extern int where_in_drivelist_is_drive (struct list_of_disks *disklist, char *device);
14
15
16
17extern int load_raidtab_into_raidlist(struct raidlist_itself*,char*);
18extern int save_raidlist_to_raidtab(struct raidlist_itself*,char*);
19extern void process_raidtab_line(FILE*, struct raid_device_record *, char*, char*);
20extern int save_raidlist_to_raidtab(struct raidlist_itself *raidlist, char*fname);
21extern void save_raidrec_to_file(struct raid_device_record *raidrec, FILE*fout);
22
23extern void 
24save_disklist_to_file(char *listname, 
25              struct list_of_disks *disklist, 
26              FILE *fout);
27
28
29#ifdef __FreeBSD__
30extern void add_disk_to_raid_device(struct vinum_plex *p, char*device_to_add);
31extern void add_plex_to_volume(struct vinum_volume *v, int raidlevel, int stripesize);
32extern void add_disk_to_raid_device(struct vinum_plex *p, char*device_to_add);
33extern long long size_spec(char *spec);
34extern bool get_option_state (int argc, char ** argv, char * option);
35extern char ** get_option_vals (int argc, char ** argv, char * option, int nval);
36extern char * get_option_val (int argc, char ** argv, char * option);
37extern char ** get_next_vinum_conf_line (FILE *f, int *argc);
38extern void add_plex_to_volume(struct vinum_volume *v, int raidlevel, int stripesize);
39#undef raid_device_record
40#else
41extern void add_disk_to_raid_device(struct list_of_disks *disklist, char*device_to_add, int index);
42#endif
43
44extern int create_raidtab_from_mdstat(char*,char*);
45extern int read_mdstat(struct s_mdstat *mdstat, char*mdstat_file);
46
47extern int create_raidtab_from_mdstat(char*raidtab_fname, char *mdstat_fname);
Note: See TracBrowser for help on using the repository browser.