dm cache: add missing cache device name to DMERR in set_cache_mode()
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
This commit is contained in:
parent
07d938822a
commit
23cab26dfc
@ -989,7 +989,8 @@ static void set_cache_mode(struct cache *cache, enum cache_metadata_mode new_mod
|
|||||||
enum cache_metadata_mode old_mode = get_cache_mode(cache);
|
enum cache_metadata_mode old_mode = get_cache_mode(cache);
|
||||||
|
|
||||||
if (dm_cache_metadata_needs_check(cache->cmd, &needs_check)) {
|
if (dm_cache_metadata_needs_check(cache->cmd, &needs_check)) {
|
||||||
DMERR("unable to read needs_check flag, setting failure mode");
|
DMERR("%s: unable to read needs_check flag, setting failure mode.",
|
||||||
|
cache_device_name(cache));
|
||||||
new_mode = CM_FAIL;
|
new_mode = CM_FAIL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user