summaryrefslogtreecommitdiffstats
path: root/restripe.c
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.de>2015-07-16 03:55:27 +0200
committerNeilBrown <neilb@suse.de>2015-07-16 04:07:54 +0200
commitad1a3c2f082d90ff050fd089496732f1371900ab (patch)
treedb8fd21dc0e476342fcb8630172ae3c1d9c9967f /restripe.c
parentraid6check: get device ordering correct for syndrome calculation. (diff)
downloadmdadm-ad1a3c2f082d90ff050fd089496732f1371900ab.tar.xz
mdadm-ad1a3c2f082d90ff050fd089496732f1371900ab.zip
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 30849b76..40d60615 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...
*/