diff options
author | Mike Snitzer <snitzer@redhat.com> | 2018-05-18 17:39:20 +0300 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2018-06-08 16:50:15 +0300 |
commit | b2b04e7e2d3bffd301d1769700ba013f58ca01b7 (patch) | |
tree | 50c85f43ad92c3364a2071e78060c9cbb244a4da /drivers/md/dm-ioctl.c | |
parent | 2a2a4c510b761e800098992cac61281c86527e5d (diff) | |
download | linux-b2b04e7e2d3bffd301d1769700ba013f58ca01b7.tar.xz |
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>
Diffstat (limited to 'drivers/md/dm-ioctl.c')
-rw-r--r-- | drivers/md/dm-ioctl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/md/dm-ioctl.c b/drivers/md/dm-ioctl.c index 5acf77de5945..b810ea77e6b1 100644 --- a/drivers/md/dm-ioctl.c +++ b/drivers/md/dm-ioctl.c @@ -1344,7 +1344,8 @@ static int table_load(struct file *filp, struct dm_ioctl *param, size_t param_si goto err_unlock_md_type; } } else if (!is_valid_type(dm_get_md_type(md), dm_table_get_type(t))) { - DMWARN("can't change device type after initial table load."); + DMWARN("can't change device type (old=%u vs new=%u) after initial table load.", + dm_get_md_type(md), dm_table_get_type(t)); r = -EINVAL; goto err_unlock_md_type; } |