Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c95bc206 authored by Milan Broz's avatar Milan Broz Committed by Linus Torvalds
Browse files

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: default avatarMilan Broz <mbroz@redhat.com>
Signed-off-by: default avatarAlasdair G Kergon <agk@redhat.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 0cd33124
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -1288,12 +1288,12 @@ static int mirror_status(struct dm_target *ti, status_type_t type,
		for (m = 0; m < ms->nr_mirrors; m++)
		for (m = 0; m < ms->nr_mirrors; m++)
			DMEMIT("%s ", ms->mirror[m].dev->name);
			DMEMIT("%s ", ms->mirror[m].dev->name);


		DMEMIT("%llu/%llu",
		DMEMIT("%llu/%llu 0 ",
			(unsigned long long)ms->rh.log->type->
			(unsigned long long)ms->rh.log->type->
				get_sync_count(ms->rh.log),
				get_sync_count(ms->rh.log),
			(unsigned long long)ms->nr_regions);
			(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;
		break;