summaryrefslogtreecommitdiff
path: root/drivers/md/dm-cache-policy-cleaner.c
AgeCommit message (Collapse)AuthorFilesLines
2013-03-20dm cache: policy change version from string to integer setMike Snitzer1-2/+5
Separate dm cache policy version string into 3 unsigned numbers corresponding to major, minor and patchlevel and store them at the end of the on-disk metadata so we know which version of the policy generated the hints in case a future version wants to use them differently. Signed-off-by: Mike Snitzer <snitzer@redhat.com> Signed-off-by: Alasdair G Kergon <agk@redhat.com>
2013-03-02dm cache: add cleaner policyHeinz Mauelshagen1-0/+464
A simple cache policy that writes back all data to the origin. This is used to decommission a dm cache by emptying it. Signed-off-by: Heinz Mauelshagen <mauelshagen@redhat.com> Signed-off-by: Joe Thornber <ejt@redhat.com> Signed-off-by: Alasdair G Kergon <agk@redhat.com>