summaryrefslogtreecommitdiff
path: root/restripe.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2015-07-16 11:55:27 +1000
committerNeilBrown <neilb@suse.de>2015-07-16 12:07:54 +1000
commitad1a3c2f082d90ff050fd089496732f1371900ab (patch)
treedb8fd21dc0e476342fcb8630172ae3c1d9c9967f /restripe.c
parent76cd79d3d19917a3d1b08310b7351f22c16e42ab (diff)
downloadmdadm-ad1a3c2f082d90ff050fd089496732f1371900ab.tar.gz
raid6check
fix checking of DDF layouts. Stuff probably still broken. Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'restripe.c')
-rw-r--r--restripe.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/restripe.c b/restripe.c
index 30849b7..40d6061 100644
--- a/restripe.c
+++ b/restripe.c
@@ -194,7 +194,8 @@ int geo_map(int block, unsigned long long stripe, int raid_disks,
}
return -1;
}
-static int is_ddf(int layout)
+
+int is_ddf(int layout)
{
switch (layout)
{
@@ -883,7 +884,7 @@ unsigned long long getnum(char *str, char **err)
}
char const Name[] = "test_restripe";
-main(int argc, char *argv[])
+int main(int argc, char *argv[])
{
/* save/restore file raid_disks chunk_size level layout start length devices...
*/