dm cache: add cache block invalidation support
authorJoe Thornber <ejt@redhat.com>
Fri, 8 Nov 2013 16:39:50 +0000 (16:39 +0000)
committerMike Snitzer <snitzer@redhat.com>
Mon, 11 Nov 2013 16:37:51 +0000 (11:37 -0500)
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>

No differences found