dm cache: add policy name to status output
authorMike Snitzer <snitzer@redhat.com>
Thu, 16 Jan 2014 02:06:55 +0000 (21:06 -0500)
committerMike Snitzer <snitzer@redhat.com>
Thu, 16 Jan 2014 18:44:11 +0000 (13:44 -0500)
commit2e68c4e6caad9fdadc1cef8b6cb9569192e8a42b
treefdc0a4f6b3eaba7979b613b9423ec4ef23a64ca5
parent74aa45c33c5afefa0107c15f2465ff4195c33f96
dm cache: add policy name to status output

The cache's policy may have been established using the "default" alias,
which is currently the "mq" policy but the default policy may change in
the future.  It is useful to know exactly which policy is being used.

Add a 'real' member to the dm_cache_policy_type structure and have the
"default" dm_cache_policy_type point to the real "mq"
dm_cache_policy_type.  Update dm_cache_policy_get_name() to check if
real is set, if so report the name of the real policy (not the alias).

Requested-by: Jonathan Brassow <jbrassow@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Documentation/device-mapper/cache.txt
drivers/md/dm-cache-policy-mq.c
drivers/md/dm-cache-policy.c
drivers/md/dm-cache-policy.h
drivers/md/dm-cache-target.c
This page took 0.025927 seconds and 5 git commands to generate.