aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorMike Snitzer <snitzer@redhat.com>2014-01-15 21:06:55 -0500
committerMike Snitzer <snitzer@redhat.com>2014-01-16 13:44:11 -0500
commit2e68c4e6caad9fdadc1cef8b6cb9569192e8a42b (patch)
treefdc0a4f6b3eaba7979b613b9423ec4ef23a64ca5 /Documentation
parent74aa45c33c5afefa0107c15f2465ff4195c33f96 (diff)
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>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/device-mapper/cache.txt3
1 files changed, 2 insertions, 1 deletions
diff --git a/Documentation/device-mapper/cache.txt b/Documentation/device-mapper/cache.txt
index 63fd7cfa4cf1..e6b72d355151 100644
--- a/Documentation/device-mapper/cache.txt
+++ b/Documentation/device-mapper/cache.txt
@@ -221,7 +221,7 @@ Status
221<cache block size> <#used cache blocks>/<#total cache blocks> 221<cache block size> <#used cache blocks>/<#total cache blocks>
222<#read hits> <#read misses> <#write hits> <#write misses> 222<#read hits> <#read misses> <#write hits> <#write misses>
223<#demotions> <#promotions> <#dirty> <#features> <features>* 223<#demotions> <#promotions> <#dirty> <#features> <features>*
224<#core args> <core args>* <#policy args> <policy args>* 224<#core args> <core args>* <policy name> <#policy args> <policy args>*
225 225
226metadata block size : Fixed block size for each metadata block in 226metadata block size : Fixed block size for each metadata block in
227 sectors 227 sectors
@@ -250,6 +250,7 @@ feature args : 'writethrough' (optional)
250#core args : Number of core arguments (must be even) 250#core args : Number of core arguments (must be even)
251core args : Key/value pairs for tuning the core 251core args : Key/value pairs for tuning the core
252 e.g. migration_threshold 252 e.g. migration_threshold
253policy name : Name of the policy
253#policy args : Number of policy arguments to follow (must be even) 254#policy args : Number of policy arguments to follow (must be even)
254policy args : Key/value pairs 255policy args : Key/value pairs
255 e.g. sequential_threshold 256 e.g. sequential_threshold