projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2a2a4c5
)
dm: report which conflicting type caused error during table_load()
author
Mike Snitzer
<snitzer@redhat.com>
Fri, 18 May 2018 14:39:20 +0000
(10:39 -0400)
committer
Mike Snitzer
<snitzer@redhat.com>
Fri, 8 Jun 2018 13:50:15 +0000
(09:50 -0400)
Eases troubleshooting to know the before vs after types.
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-ioctl.c
patch
|
blob
|
history
diff --git
a/drivers/md/dm-ioctl.c
b/drivers/md/dm-ioctl.c
index
5acf77d
..
b810ea7
100644
(file)
--- 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;
}