From: Jes Sorensen <Jes.Sorensen@xxxxxxxxxx>
This avoids a segfault in case one tries to create a raid from a non
existing device (like a loop device).
Reported by Jim Meyering in
https://bugzilla.redhat.com/show_bug.cgi?id=795461
Signed-off-by: Jes Sorensen <Jes.Sorensen@xxxxxxxxxx>
---
Create.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Create.c b/Create.c
index 90ff3ed..702ac34 100644
--- a/Create.c
+++ b/Create.c
@@ -926,7 +926,7 @@ 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);
+ mddev);
st->ss->free_super(st);
goto abort_locked;
}
--
1.7.7.6
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
[ATA RAID]
[Linux SCSI Target Infrastructure]
[Managing RAID on Linux]
[Linux IDE]
[Linux SCSI]
[Linux Hams]
[Device-Mapper]
[Kernel]
[Linux Books]
[Linux Admin]
[Linux Net]
[GFS]
[RPM]
[git]
[Photos]
[Yosemite Photos]
[Yosemite News]
[AMD 64]
[Linux Networking]