diff options
author | Jonathan Earl Brassow <jbrassow@redhat.com> | 2011-08-13 04:28:34 +0000 |
---|---|---|
committer | Jonathan Earl Brassow <jbrassow@redhat.com> | 2011-08-13 04:28:34 +0000 |
commit | 4903b85d237a6f7c42f6a8902e171be7735ebbc9 (patch) | |
tree | 66c01de60f435190619a9c09407460eddc3a7802 /lib/raid/raid.c | |
parent | c4323a0f4beb52442f4ffec0438e95b25d125157 (diff) | |
download | lvm2-4903b85d237a6f7c42f6a8902e171be7735ebbc9.tar.gz lvm2-4903b85d237a6f7c42f6a8902e171be7735ebbc9.tar.xz lvm2-4903b85d237a6f7c42f6a8902e171be7735ebbc9.zip |
Compiler warning fixes, better error messaging, and cosmetic changes.
1) add new function 'raid_remove_top_layer' which will be useful
to other conversion functions later (also cleans up code)
2) Add error messages if raid_[extract|add]_images fails
3) Add function prototypes to prevent compiler warnings when
compiling with '--with-raid=shared'
Diffstat (limited to 'lib/raid/raid.c')
-rw-r--r-- | lib/raid/raid.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/raid/raid.c b/lib/raid/raid.c index 964d615f..75fd1110 100644 --- a/lib/raid/raid.c +++ b/lib/raid/raid.c @@ -349,6 +349,20 @@ static struct segment_type *init_raid_segtype(struct cmd_context *cmd, return segtype; } +#ifndef RAID_INTERNAL /* Shared */ +struct segment_type *init_raid1_segtype(struct cmd_context *cmd); +struct segment_type *init_raid4_segtype(struct cmd_context *cmd); +struct segment_type *init_raid5_segtype(struct cmd_context *cmd); +struct segment_type *init_raid5_la_segtype(struct cmd_context *cmd); +struct segment_type *init_raid5_ra_segtype(struct cmd_context *cmd); +struct segment_type *init_raid5_ls_segtype(struct cmd_context *cmd); +struct segment_type *init_raid5_rs_segtype(struct cmd_context *cmd); +struct segment_type *init_raid6_segtype(struct cmd_context *cmd); +struct segment_type *init_raid6_zr_segtype(struct cmd_context *cmd); +struct segment_type *init_raid6_nr_segtype(struct cmd_context *cmd); +struct segment_type *init_raid6_nc_segtype(struct cmd_context *cmd); +#endif + struct segment_type *init_raid1_segtype(struct cmd_context *cmd) { struct segment_type *segtype; |