RE: [PATCH 1/2] md: raid5 return new layout in mdstat while reshaping
From: Trela, Maciej <hidden>
Date: 2010-07-22 08:43:37
From: Trela, Maciej <hidden>
Date: 2010-07-22 08:43:37
-----Original Message----- From: dan.j.williams@gmail.com [mailto:dan.j.williams@gmail.com] On Behalf Of Dan Williams Sent: Thursday, July 22, 2010 2:59 AM To: Trela, Maciej Cc: Neil Brown; Kwolek, Adam; linux-raid@vger.kernel.org Subject: Re: [PATCH 1/2] md: raid5 return new layout in mdstat while reshaping On Wed, Jul 21, 2010 at 4:03 AM, Trela, Maciej [off-list ref] wrote:quoted
From: Maciej Trela <redacted> While reshaping, report mdstat algorithm according to the new_layout.It's not immediately clear to me why this is needed? The md/layout attribute in sysfs shows the new_layout during reshape if userspace forgets what it changed (should also be recorded in the metadata). If it is needed then spell that out in the commit message.
Yes, you are right. We can definitely read the new layout from sysfs. Thanks.