[1] | 1 | /* libmondo-raid-EXT.h */
|
---|
| 2 |
|
---|
| 3 | #ifdef __FreeBSD__
|
---|
| 4 | #define raid_device_record vinum_volume
|
---|
| 5 | #endif
|
---|
| 6 |
|
---|
[59] | 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);
|
---|
[1] | 14 |
|
---|
[59] | 15 | extern int where_in_drivelist_is_drive(struct list_of_disks *disklist,
|
---|
| 16 | char *device);
|
---|
[1] | 17 |
|
---|
| 18 |
|
---|
| 19 |
|
---|
[59] | 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);
|
---|
[1] | 28 |
|
---|
[59] | 29 | extern void
|
---|
| 30 | save_disklist_to_file(char *listname,
|
---|
| 31 | struct list_of_disks *disklist, FILE * fout);
|
---|
[1] | 32 |
|
---|
| 33 |
|
---|
| 34 | #ifdef __FreeBSD__
|
---|
[59] | 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);
|
---|
[1] | 41 | extern long long size_spec(char *spec);
|
---|
[59] | 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);
|
---|
[1] | 49 | #undef raid_device_record
|
---|
| 50 | #else
|
---|
[59] | 51 | extern void add_disk_to_raid_device(struct list_of_disks *disklist,
|
---|
| 52 | char *device_to_add, int index);
|
---|
[1] | 53 | #endif
|
---|
| 54 |
|
---|
[59] | 55 | extern int create_raidtab_from_mdstat(char *, char *);
|
---|
| 56 | extern int read_mdstat(struct s_mdstat *mdstat, char *mdstat_file);
|
---|
[1] | 57 |
|
---|
[59] | 58 | extern int create_raidtab_from_mdstat(char *raidtab_fname,
|
---|
| 59 | char *mdstat_fname);
|
---|