source: branches/2.04_berlios/mondo/mondo/common/libmondo-raid.h @ 2708

Last change on this file since 2708 was 2708, checked in by bruno, 8 years ago

r4184@localhost: bruno | 2011-01-27 15:52:51 +0100

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