- To: NeilBrown <neilb@xxxxxxx>
- Subject: Re: [PATCH] Print correct md device name if write_init_super fails
- From: Jes Sorensen <Jes.Sorensen@xxxxxxxxxx>
- Date: Wed, 22 Feb 2012 12:00:15 +0100
- Cc: meyering@xxxxxxxxxx, linux-raid@xxxxxxxxxxxxxxx
- In-reply-to: <20120222065335.268c8aae@notabene.brown>
- User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111108 Fedora/3.1.16-1.fc14 Lightning/1.0b3pre Thunderbird/3.1.16
On 02/21/12 20:53, NeilBrown wrote:
> On Tue, 21 Feb 2012 13:30:02 +0100 Jes.Sorensen@xxxxxxxxxx wrote:
>> 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;
>> }
>
> Hi Jes,
> this doesn't seem right. You message would print e.g.
>
> mdadm: Failed to write metadata to /dev/md1
>
> but one doesn't write metadata to an array, one writes it to the member
> devices.
> Each ->write_init_super function should print out a message if a write
> fails. So I think we just remove the error message here, and make sure
> each ->write_init_super does print an error in each case (there might be a
> couple of holes).
>
> Could you try that approach instead?
Hi Neil,
Makes sense - this was the best I could do in the global context, but I
see the various write_init_super() functions already print errors.
Replacement patch coming your way in 60 seconds or so.
Cheers,
Jes
--
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]