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

Commit f6bd4eb7 authored by Jonathan Brassow's avatar Jonathan Brassow Committed by Alasdair G Kergon
Browse files

dm exception store: fix exstore lookup to be case insensitive



When snapshots are created using 'p' instead of 'P' as the
exception store type, the device-mapper table loading fails.

This patch makes the code case insensitive as intended and fixes some
regressions reported with device-mapper snapshots.

Signed-off-by: default avatarJonathan Brassow <jbrassow@redhat.com>
Cc: stable@kernel.org
Signed-off-by: default avatarAlasdair G Kergon <agk@redhat.com>
parent 5657e8fa
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -216,7 +216,7 @@ int dm_exception_store_create(struct dm_target *ti, int argc, char **argv,
		return -EINVAL;
		return -EINVAL;
	}
	}


	type = get_type(argv[1]);
	type = get_type(&persistent);
	if (!type) {
	if (!type) {
		ti->error = "Exception store type not recognised";
		ti->error = "Exception store type not recognised";
		r = -EINVAL;
		r = -EINVAL;