Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

dm: report which conflicting type caused error during table_load()

Eases troubleshooting to know the before vs after types.

Signed-off-by: Mike Snitzer <snitzer@redhat.com>

+2 -1
+2 -1
drivers/md/dm-ioctl.c
··· 1344 1344 goto err_unlock_md_type; 1345 1345 } 1346 1346 } else if (!is_valid_type(dm_get_md_type(md), dm_table_get_type(t))) { 1347 - DMWARN("can't change device type after initial table load."); 1347 + DMWARN("can't change device type (old=%u vs new=%u) after initial table load.", 1348 + dm_get_md_type(md), dm_table_get_type(t)); 1348 1349 r = -EINVAL; 1349 1350 goto err_unlock_md_type; 1350 1351 }