All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jes Sorensen <Jes.Sorensen@redhat.com>
To: NeilBrown <neilb@suse.de>
Cc: dledford@redhat.com, linux-raid@vger.kernel.org
Subject: Re: [PATCH v2] Avoid OOPS when reshaping raid1 to raid0
Date: Tue, 27 Mar 2012 09:17:46 +0200	[thread overview]
Message-ID: <4F71699A.4090809@redhat.com> (raw)
In-Reply-To: <20120327143539.32cedf3c@notabene.brown>

On 03/27/12 05:35, NeilBrown wrote:
> On Mon, 26 Mar 2012 10:31:25 +0200 Jes.Sorensen@redhat.com wrote:
> 
>> From: Jes Sorensen <Jes.Sorensen@redhat.com>
>>
>> raid1 arrays do not have the notion of chunk size. Calculate the
>> larges chunk sector size we can use to avoid a divide by zero OOPS
>> when aligning the size of the new array to the chunk size.
>>
>> Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
> 
> Thanks.
> Applied with one change:
> 
>>  	/* Set new parameters */
>>  	mddev->new_level = 0;
>>  	mddev->new_layout = 0;
>>  	mddev->new_chunk_sectors = 128; /* by default set chunk size to 64k */
> 
> I changed the above line to
> 	mddev->new_chunk_sectors = chunksect;
> 
> as that makes more sense.

I agree, I was wondering whether to change it as well.

Thanks - will it be in your git repo soon?

Cheers,
Jes

      reply	other threads:[~2012-03-27  7:17 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-26  8:31 [PATCH v2] Avoid OOPS when reshaping raid1 to raid0 Jes.Sorensen
2012-03-27  3:35 ` NeilBrown
2012-03-27  7:17   ` Jes Sorensen [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F71699A.4090809@redhat.com \
    --to=jes.sorensen@redhat.com \
    --cc=dledford@redhat.com \
    --cc=linux-raid@vger.kernel.org \
    --cc=neilb@suse.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.