* [PATCH] mdmon: let mdmon know the layout
@ 2013-08-02 8:14 Lukasz Dorau
2013-08-05 5:12 ` NeilBrown
0 siblings, 1 reply; 2+ messages in thread
From: Lukasz Dorau @ 2013-08-02 8:14 UTC (permalink / raw)
To: neilb; +Cc: linux-raid, pawel.baldysiak
The following commit:
Fix is_resync_complete for RAID10
commit 71d68ff62f945254240575cd836f5f2a09ced5d2
requires that mdmon knows the layout.
So make manage_new() read the layout form sysfs.
Signed-off-by: Lukasz Dorau <lukasz.dorau@intel.com>
---
managemon.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/managemon.c b/managemon.c
index 6cd93e5..7033c19 100644
--- a/managemon.c
+++ b/managemon.c
@@ -650,8 +650,8 @@ static void manage_new(struct mdstat_ent *mdstat,
return;
mdi = sysfs_read(-1, mdstat->devnm,
- GET_LEVEL|GET_CHUNK|GET_DISKS|GET_COMPONENT|
- GET_DEGRADED|GET_SAFEMODE|
+ GET_LEVEL|GET_LAYOUT|GET_CHUNK|GET_DISKS|
+ GET_COMPONENT|GET_DEGRADED|GET_SAFEMODE|
GET_DEVS|GET_OFFSET|GET_SIZE|GET_STATE);
if (!mdi)
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] mdmon: let mdmon know the layout
2013-08-02 8:14 [PATCH] mdmon: let mdmon know the layout Lukasz Dorau
@ 2013-08-05 5:12 ` NeilBrown
0 siblings, 0 replies; 2+ messages in thread
From: NeilBrown @ 2013-08-05 5:12 UTC (permalink / raw)
To: Lukasz Dorau; +Cc: linux-raid, pawel.baldysiak
[-- Attachment #1: Type: text/plain, Size: 1068 bytes --]
On Fri, 02 Aug 2013 10:14:45 +0200 Lukasz Dorau <lukasz.dorau@intel.com>
wrote:
> The following commit:
>
> Fix is_resync_complete for RAID10
> commit 71d68ff62f945254240575cd836f5f2a09ced5d2
>
> requires that mdmon knows the layout.
> So make manage_new() read the layout form sysfs.
>
> Signed-off-by: Lukasz Dorau <lukasz.dorau@intel.com>
> ---
> managemon.c | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/managemon.c b/managemon.c
> index 6cd93e5..7033c19 100644
> --- a/managemon.c
> +++ b/managemon.c
> @@ -650,8 +650,8 @@ static void manage_new(struct mdstat_ent *mdstat,
> return;
>
> mdi = sysfs_read(-1, mdstat->devnm,
> - GET_LEVEL|GET_CHUNK|GET_DISKS|GET_COMPONENT|
> - GET_DEGRADED|GET_SAFEMODE|
> + GET_LEVEL|GET_LAYOUT|GET_CHUNK|GET_DISKS|
> + GET_COMPONENT|GET_DEGRADED|GET_SAFEMODE|
> GET_DEVS|GET_OFFSET|GET_SIZE|GET_STATE);
>
> if (!mdi)
Thanks. I applied a very similar patch from Martin Wilck instead (his came
first:-)
Thanks,
NeilBrown
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 828 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-08-05 5:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-02 8:14 [PATCH] mdmon: let mdmon know the layout Lukasz Dorau
2013-08-05 5:12 ` 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).