aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-raid1.c
diff options
context:
space:
mode:
authorMilan Broz <mbroz@redhat.com>2007-07-12 12:27:24 -0400
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-07-12 18:01:08 -0400
commitc95bc206da4bc9838bad826883f8f461a972e441 (patch)
tree6a5667088ae684000b48946e61ccd17e09c4c04f /drivers/md/dm-raid1.c
parent0cd3312434cd1f29bee6bff53bf2790d733ad2a2 (diff)
dm raid1: fix status
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 Cc: stable@kernel.org Signed-off-by: Milan Broz <mbroz@redhat.com> Signed-off-by: Alasdair G Kergon <agk@redhat.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/md/dm-raid1.c')
-rw-r--r--drivers/md/dm-raid1.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/md/dm-raid1.c b/drivers/md/dm-raid1.c
index 2a02180f5d05..b3bba98af772 100644
--- a/drivers/md/dm-raid1.c
+++ b/drivers/md/dm-raid1.c
@@ -1288,12 +1288,12 @@ static int mirror_status(struct dm_target *ti, status_type_t type,
1288 for (m = 0; m < ms->nr_mirrors; m++) 1288 for (m = 0; m < ms->nr_mirrors; m++)
1289 DMEMIT("%s ", ms->mirror[m].dev->name); 1289 DMEMIT("%s ", ms->mirror[m].dev->name);
1290 1290
1291 DMEMIT("%llu/%llu", 1291 DMEMIT("%llu/%llu 0 ",
1292 (unsigned long long)ms->rh.log->type-> 1292 (unsigned long long)ms->rh.log->type->
1293 get_sync_count(ms->rh.log), 1293 get_sync_count(ms->rh.log),
1294 (unsigned long long)ms->nr_regions); 1294 (unsigned long long)ms->nr_regions);
1295 1295
1296 sz = ms->rh.log->type->status(ms->rh.log, type, result, maxlen); 1296 sz += ms->rh.log->type->status(ms->rh.log, type, result+sz, maxlen-sz);
1297 1297
1298 break; 1298 break;
1299 1299