diff options
author | Jes Sorensen <Jes.Sorensen@redhat.com> | 2012-02-23 08:55:19 +1100 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2012-02-23 08:55:19 +1100 |
commit | 4011421332681ba733a2fc90de7ac94da8593418 (patch) | |
tree | 21cf58aaa48bd32b3ac5a90895aa1310ad0d4901 /Create.c | |
parent | 9200d418d049aff77b3d0ad8f30f1a16adc56030 (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.c | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -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; } |