1 | /* libmondo-raid-EXT.h */
|
---|
2 |
|
---|
3 | #ifdef __FreeBSD__
|
---|
4 | #define raid_device_record vinum_volume
|
---|
5 | #endif
|
---|
6 |
|
---|
7 | extern bool is_this_raid_personality_registered(int raidno);
|
---|
8 | extern int which_raid_device_is_using_this_partition(struct raidlist_itself
|
---|
9 | *raidlist,
|
---|
10 | char *device);
|
---|
11 | extern void write_variableINT_to_raid_var_line(struct raid_device_record
|
---|
12 | *raidrec, int lino,
|
---|
13 | char *label, int value);
|
---|
14 |
|
---|
15 | extern int where_in_drivelist_is_drive(struct list_of_disks *disklist,
|
---|
16 | char *device);
|
---|
17 |
|
---|
18 |
|
---|
19 |
|
---|
20 | extern int load_raidtab_into_raidlist(struct raidlist_itself *, char *);
|
---|
21 | extern int save_raidlist_to_raidtab(struct raidlist_itself *, char *);
|
---|
22 | extern void process_raidtab_line(FILE *, struct raid_device_record *,
|
---|
23 | char *, char *);
|
---|
24 | extern int save_raidlist_to_raidtab(struct raidlist_itself *raidlist,
|
---|
25 | char *fname);
|
---|
26 | extern void save_raidrec_to_file(struct raid_device_record *raidrec,
|
---|
27 | FILE * fout);
|
---|
28 |
|
---|
29 | extern void
|
---|
30 | save_disklist_to_file(char *listname,
|
---|
31 | struct list_of_disks *disklist, FILE * fout);
|
---|
32 |
|
---|
33 |
|
---|
34 | #ifdef __FreeBSD__
|
---|
35 | extern void add_disk_to_raid_device(struct vinum_plex *p,
|
---|
36 | char *device_to_add);
|
---|
37 | extern void add_plex_to_volume(struct vinum_volume *v, int raidlevel,
|
---|
38 | int stripesize);
|
---|
39 | extern void add_disk_to_raid_device(struct vinum_plex *p,
|
---|
40 | char *device_to_add);
|
---|
41 | extern long long size_spec(char *spec);
|
---|
42 | extern bool get_option_state(int argc, char **argv, char *option);
|
---|
43 | extern char **get_option_vals(int argc, char **argv, char *option,
|
---|
44 | int nval);
|
---|
45 | extern char *get_option_val(int argc, char **argv, char *option);
|
---|
46 | extern char **get_next_vinum_conf_line(FILE * f, int *argc);
|
---|
47 | extern void add_plex_to_volume(struct vinum_volume *v, int raidlevel,
|
---|
48 | int stripesize);
|
---|
49 | #undef raid_device_record
|
---|
50 | #else
|
---|
51 | extern void add_disk_to_raid_device(struct list_of_disks *disklist,
|
---|
52 | char *device_to_add, int index);
|
---|
53 | #endif
|
---|
54 |
|
---|
55 | extern int parse_mdstat(struct raidlist_itself *raidlist, char *device_prefix);
|
---|
56 | extern int create_raidtab_from_mdstat(char *raidtab_fname);
|
---|