summaryrefslogtreecommitdiff
path: root/Create.c
diff options
context:
space:
mode:
authorJes Sorensen <Jes.Sorensen@redhat.com>2012-02-23 08:55:19 +1100
committerNeilBrown <neilb@suse.de>2012-02-23 08:55:19 +1100
commit4011421332681ba733a2fc90de7ac94da8593418 (patch)
tree21cf58aaa48bd32b3ac5a90895aa1310ad0d4901 /Create.c
parent9200d418d049aff77b3d0ad8f30f1a16adc56030 (diff)
Print error message if failing to write super for 1.x metadata
In addition remove attempt to print an error message if write_init_super() fails, as this is handled in the various write_init_super() functions. This avoids a segfault on error. Reported by Jim Meyering in https://bugzilla.redhat.com/show_bug.cgi?id=795461 Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'Create.c')
-rw-r--r--Create.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/Create.c b/Create.c
index 90ff3edd..e5c6b05e 100644
--- a/Create.c
+++ b/Create.c
@@ -924,9 +924,6 @@ int Create(struct supertype *st, char *mddev,
}
if (st->ss->write_init_super(st)) {
- fprintf(stderr,
- Name ": Failed to write metadata to %s\n",
- dv->devname);
st->ss->free_super(st);
goto abort_locked;
}