Re: [PATCH 0/4] mdadm:checking level once mode has been set

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 03/13/2017 11:48 AM, NeilBrown wrote:
On Mon, Mar 13 2017, zhilong wrote:

On 03/13/2017 06:54 AM, NeilBrown wrote:
On Wed, Mar 08 2017, Zhilong Liu wrote:

mdadm: it would be better to check --level ealier,
because it would fall to different prompt if user
forgets to specify the --level. such as:
./mdadm -CR /dev/md0 -b internal -n2 -x1 /dev/loop[0-2]
When I run that command I get:

    mdadm: a RAID level is needed to create an array.


What do you get?
I'm sorry I have provided the wrong command, for this scenario,
issues "mdadm --build /dev/md0 -n2 /dev/loop[0-1]" should be
proper. it's the purpose to check --level earlier.
OK, that makes sense.

If this patch is useful, I would send the v1 patch for it, correct the
comments.
My preference would be to have the check in Build.c, but Jes might have
different ideas.

copy that, thanks very much.

Best regards,
-Zhilong

NeilBrown

--
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



[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux