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

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

Trunk: indent on all source files

  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
1/* libmondo-raid.h
2 * $Id: libmondo-raid.h 59 2005-10-10 23:34:31Z andree $
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
11                                              *raidlist, 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,
15                                char *device);
16
17int load_raidtab_into_raidlist(struct raidlist_itself *, char *);
18int save_raidlist_to_raidtab(struct raidlist_itself *, char *);
19void process_raidtab_line(FILE *, struct raid_device_record *, char *,
20                          char *);
21int save_raidlist_to_raidtab(struct raidlist_itself *raidlist,
22                             char *fname);
23void save_raidrec_to_file(struct raid_device_record *raidrec, FILE * fout);
24void
25save_disklist_to_file(char *listname,
26                      struct list_of_disks *disklist, FILE * fout);
27#ifdef __FreeBSD__
28void add_disk_to_raid_device(struct vinum_plex *p, char *device_to_add);
29void add_plex_to_volume(struct vinum_volume *v, int raidlevel,
30                        int stripesize);
31void add_disk_to_raid_device(struct vinum_plex *p, char *device_to_add);
32long long size_spec(char *spec);
33bool get_option_state(int argc, char **argv, char *option);
34char **get_option_vals(int argc, char **argv, char *option, int nval);
35char *get_option_val(int argc, char **argv, char *option);
36char **get_next_vinum_conf_line(FILE * f, int *argc);
37void add_plex_to_volume(struct vinum_volume *v, int raidlevel,
38                        int stripesize);
39#undef raid_device_record
40#else
41void add_disk_to_raid_device(struct list_of_disks *disklist,
42                             char *device_to_add, int index);
43#endif
44
45
46int create_raidtab_from_mdstat(char *, char *);
47int read_mdstat(struct s_mdstat *mdstat, char *mdstat_file);
48
49int create_raidtab_from_mdstat(char *raidtab_fname, char *mdstat_fname);
Note: See TracBrowser for help on using the repository browser.