diff options
author | Jonathan Brassow <jbrassow@redhat.com> | 2009-06-22 10:12:15 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-07-02 16:50:45 -0700 |
commit | 97af79aa56868336db493c26a2acaf47996ba1d8 (patch) | |
tree | fd60c19deb6b8884cb503f66d3313fc1a6ce369d /drivers | |
parent | 5c84f975daf48dbbe409486f94fae55b43b1c57a (diff) | |
download | lwn-97af79aa56868336db493c26a2acaf47996ba1d8.tar.gz lwn-97af79aa56868336db493c26a2acaf47996ba1d8.zip |
dm exception store: fix exstore lookup to be case insensitive
commit f6bd4eb73cdf2a5bf954e497972842f39cabb7e3 upstream.
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>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Cc: Arjan van de Ven <arjan@infradead.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/md/dm-exception-store.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/dm-exception-store.c b/drivers/md/dm-exception-store.c index a2e26c242141..b86b3c96a575 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; |