Skip to contentSkip to conversation

dm exception store: exstore type lookup should be case insensitive

PATCH New Jonathan Brassow 1 participant 1 message Jun 18, 2009 Device mapper

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 dm exception store: exstore type lookup should be case insensitive

This two line patch will fix the regressions some users are experiencing with device-mapper snapshots.

brassow

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

This patch allows the code to be case insensitive.

drivers/md/dm-exception-store.c +1 -0
Index: linux-2.6/drivers/md/dm-exception-store.c
===================================================================
@@ -215,6 +215,7 @@ int dm_exception_store_create(struct dm_
 		ti->error = "Persistent flag is not P or N";
 		return -EINVAL;
 	}
+	*argv[1] = persistent;
 
 	type = get_type(argv[1]);
 	if (!type) {