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