linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] deal with imsm spares in Incremental
@ 2011-01-04 15:03 Czarnowska, Anna
  2011-01-05  3:44 ` NeilBrown
  0 siblings, 1 reply; 2+ messages in thread
From: Czarnowska, Anna @ 2011-01-04 15:03 UTC (permalink / raw)
  To: Neil Brown
  Cc: linux-raid@vger.kernel.org, Williams, Dan J, Ciechanowski, Ed,
	Hawrylewicz Czarnowski, Przemyslaw, Labun, Marcin,
	Neubauer, Wojciech

Hi Neil,
Some time ago you suggested that Incremental may migrate spares from spare-container
when it is ready to start array as it is impossible to know array's domain before we have all members.
Here are patches that do this.
First two patches modify slightly existing functions to be able to use them in Incremental too.
Third one does the work.
Regards
Anna

0001-Use-one-function-chosing-spares-from-container.patch
0002-move_spare-function-modified-and-moved-to-Manage.c.patch
0003-Incremental-move-suitable-spares-to-container-when-s.patch
 
 Incremental.c |   45 +++++++++++++++++++++++++
 Manage.c      |   44 ++++++++++++++++++++++++
 Monitor.c     |  102 +++++++++-----------------------------------------------
 mdadm.h       |    7 +++-
 super-intel.c |   46 ++++++++++++++++++++-----
 5 files changed, 149 insertions(+), 95 deletions(-)

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH 0/3] deal with imsm spares in Incremental
  2011-01-04 15:03 [PATCH 0/3] deal with imsm spares in Incremental Czarnowska, Anna
@ 2011-01-05  3:44 ` NeilBrown
  0 siblings, 0 replies; 2+ messages in thread
From: NeilBrown @ 2011-01-05  3:44 UTC (permalink / raw)
  To: Czarnowska, Anna
  Cc: linux-raid@vger.kernel.org, Williams, Dan J, Ciechanowski, Ed,
	Hawrylewicz Czarnowski, Przemyslaw, Labun, Marcin,
	Neubauer, Wojciech

On Tue, 4 Jan 2011 15:03:04 +0000 "Czarnowska, Anna"
<anna.czarnowska@intel.com> wrote:

> Hi Neil,
> Some time ago you suggested that Incremental may migrate spares from spare-container
> when it is ready to start array as it is impossible to know array's domain before we have all members.
> Here are patches that do this.
> First two patches modify slightly existing functions to be able to use them in Incremental too.
> Third one does the work.
> Regards
> Anna

Thanks.  Looks good.
> 
> 0001-Use-one-function-chosing-spares-from-container.patch

I rearrange some of the code in this one as you left a generic function in
super-intel.c.  I moved container_chose_spares to util.c and renamed it to
container_choose_spares (and extra 'o').

> 0002-move_spare-function-modified-and-moved-to-Manage.c.patch
applied.

> 0003-Incremental-move-suitable-spares-to-container-when-s.patch

I rearranged the code a little bit to reduce the level of indentation
required - it was getting *really* deep!

Thanks,

NeilBrown



>  
>  Incremental.c |   45 +++++++++++++++++++++++++
>  Manage.c      |   44 ++++++++++++++++++++++++
>  Monitor.c     |  102 +++++++++-----------------------------------------------
>  mdadm.h       |    7 +++-
>  super-intel.c |   46 ++++++++++++++++++++-----
>  5 files changed, 149 insertions(+), 95 deletions(-)
> --
> 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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-01-05  3:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-04 15:03 [PATCH 0/3] deal with imsm spares in Incremental Czarnowska, Anna
2011-01-05  3:44 ` NeilBrown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).