summaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-exception-store.c
diff options
context:
space:
mode:
authorJonathan Brassow <jbrassow@redhat.com>2009-06-22 10:12:15 +0100
committerAlasdair G Kergon <agk@redhat.com>2009-06-22 10:12:15 +0100
commitf6bd4eb73cdf2a5bf954e497972842f39cabb7e3 (patch)
treef1f0ac6c9fe3ff31cccf6082397bd0802d999344 /drivers/md/dm-exception-store.c
parent5657e8fa45cf230df278040c420fb80e06309d8f (diff)
downloadop-kernel-dev-f6bd4eb73cdf2a5bf954e497972842f39cabb7e3.zip
op-kernel-dev-f6bd4eb73cdf2a5bf954e497972842f39cabb7e3.tar.gz
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: Jonathan Brassow <jbrassow@redhat.com> Cc: stable@kernel.org Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Diffstat (limited to 'drivers/md/dm-exception-store.c')
-rw-r--r--drivers/md/dm-exception-store.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-exception-store.c b/drivers/md/dm-exception-store.c
index 75d8081..c3ae515 100644
--- a/drivers/md/dm-exception-store.c
+++ b/drivers/md/dm-exception-store.c
@@ -216,7 +216,7 @@ int dm_exception_store_create(struct dm_target *ti, int argc, char **argv,
return -EINVAL;
}
- type = get_type(argv[1]);
+ type = get_type(&persistent);
if (!type) {
ti->error = "Exception store type not recognised";
r = -EINVAL;
OpenPOWER on IntegriCloud