aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/device-mapper
diff options
context:
space:
mode:
authorJoe Thornber <ejt@redhat.com>2013-11-08 11:39:50 -0500
committerMike Snitzer <snitzer@redhat.com>2013-11-11 11:37:51 -0500
commit65790ff919e2e07ccb4457415c11075b245d643b (patch)
tree9e2e0c667cf0fe62d72c1c37514d2535aa52ba5b /Documentation/device-mapper
parent532906aa7f9656209f30f08dfadd328fc1bc6912 (diff)
dm cache: add cache block invalidation support
Cache block invalidation is removing an entry from the cache without writing it back. Cache blocks can be invalidated via the 'invalidate_cblocks' message, which takes an arbitrary number of cblock ranges: invalidate_cblocks [<cblock>|<cblock begin>-<cblock end>]* E.g. dmsetup message my_cache 0 invalidate_cblocks 2345 3456-4567 5678-6789 Signed-off-by: Joe Thornber <ejt@redhat.com> Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'Documentation/device-mapper')
-rw-r--r--Documentation/device-mapper/cache.txt12
1 files changed, 11 insertions, 1 deletions
diff --git a/Documentation/device-mapper/cache.txt b/Documentation/device-mapper/cache.txt
index ff6639f72536..fc9d2dfb9415 100644
--- a/Documentation/device-mapper/cache.txt
+++ b/Documentation/device-mapper/cache.txt
@@ -244,12 +244,22 @@ The message format is:
244E.g. 244E.g.
245 dmsetup message my_cache 0 sequential_threshold 1024 245 dmsetup message my_cache 0 sequential_threshold 1024
246 246
247
248Invalidation is removing an entry from the cache without writing it
249back. Cache blocks can be invalidated via the invalidate_cblocks
250message, which takes an arbitrary number of cblock ranges.
251
252 invalidate_cblocks [<cblock>|<cblock begin>-<cblock end>]*
253
254E.g.
255 dmsetup message my_cache 0 invalidate_cblocks 2345 3456-4567 5678-6789
256
247Examples 257Examples
248======== 258========
249 259
250The test suite can be found here: 260The test suite can be found here:
251 261
252https://github.com/jthornber/thinp-test-suite 262https://github.com/jthornber/device-mapper-test-suite
253 263
254dmsetup create my_cache --table '0 41943040 cache /dev/mapper/metadata \ 264dmsetup create my_cache --table '0 41943040 cache /dev/mapper/metadata \
255 /dev/mapper/ssd /dev/mapper/origin 512 1 writeback default 0' 265 /dev/mapper/ssd /dev/mapper/origin 512 1 writeback default 0'