* [2.6.23 PATCH 06/18] dm raid1: fix status
@ 2007-07-11 20:58 Alasdair G Kergon
0 siblings, 0 replies; only message in thread
From: Alasdair G Kergon @ 2007-07-11 20:58 UTC (permalink / raw)
To: Andrew Morton; +Cc: dm-devel, linux-kernel, Milan Broz
From: Milan Broz <mbroz@redhat.com>
Fix mirror status line broken in dm-log-report-fault-status.patch:
- space missing between two words
- placeholder ("0") required for compatibility with a subsequent patch
- incorrect offset parameter
Signed-off-by: Milan Broz <mbroz@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
---
drivers/md/dm-raid1.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Index: linux/drivers/md/dm-raid1.c
===================================================================
--- linux.orig/drivers/md/dm-raid1.c 2007-07-11 21:37:40.000000000 +0100
+++ linux/drivers/md/dm-raid1.c 2007-07-11 21:37:42.000000000 +0100
@@ -1288,12 +1288,12 @@ static int mirror_status(struct dm_targe
for (m = 0; m < ms->nr_mirrors; m++)
DMEMIT("%s ", ms->mirror[m].dev->name);
- DMEMIT("%llu/%llu",
+ DMEMIT("%llu/%llu 0 ",
(unsigned long long)ms->rh.log->type->
get_sync_count(ms->rh.log),
(unsigned long long)ms->nr_regions);
- sz = ms->rh.log->type->status(ms->rh.log, type, result, maxlen);
+ sz += ms->rh.log->type->status(ms->rh.log, type, result+sz, maxlen-sz);
break;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2007-07-11 21:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-07-11 20:58 [2.6.23 PATCH 06/18] dm raid1: fix status Alasdair G Kergon
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®