Re: Subject: [PATCH] mdadm: raid0: support chunks of 4K*n for raid0

Sujit Karataparambil
2009-05-15T03:59:16Z

Neil,

I donot understand why this needs to be done in raid. Why should be the raid
taking care of 4k*n data sets.

What I see of this patch is that it specifically checks for some sort
of 4K Boundaries.

Thanks,
Sujit

On Thu, May 14, 2009 at 10:42 PM, raz ben yehuda <raziebe@gmail.com> wrote:
> Neil.
> I do not know what is policy for mdadm patches. I would thankful for some instructions.
> The bellow is the patch I applied to support raid0 chunk sizes 4K*n.
> ---
> --- mdadm.c     (revision 16152)
> +++ mdadm.c     (working copy)
> @@ -314,7 +314,8 @@
>                                exit(2);
>                        }
>                        chunk = strtol(optarg, &c, 10);
> -                       if (!optarg[0] || *c || chunk<4 || (chunk%4)) {
> +                       if (!optarg[0] || *c || chunk<4 ||  (((chunk-1)&chunk) && level !=0)
> +                                       ||  (((chunk%4) && level ==0) )) {
>                                fprintf(stderr, Name ": invalid chunk/rounding value: %s\n",
>                                        optarg);
>                                exit(2);
>
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-raid" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>

--
-- Sujit K M
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html