dm: add era target
authorJoe Thornber <ejt@redhat.com>
Mon, 3 Mar 2014 15:23:15 +0000 (10:23 -0500)
committerMike Snitzer <snitzer@redhat.com>
Thu, 27 Mar 2014 20:56:23 +0000 (16:56 -0400)
commiteec40579d84873dfb7021eb24c50360f073237c5
treea294d43a2029ab02ceeab33396e7c948e374a571
parentb098d6726bbfb94c06d6e1097466187afddae61f
dm: add era target

dm-era is a target that behaves similar to the linear target.  In
addition it keeps track of which blocks were written within a user
defined period of time called an 'era'.  Each era target instance
maintains the current era as a monotonically increasing 32-bit
counter.

Use cases include tracking changed blocks for backup software, and
partially invalidating the contents of a cache to restore cache
coherency after rolling back a vendor snapshot.

dm-era is primarily expected to be paired with the dm-cache target.

Signed-off-by: Joe Thornber <ejt@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Documentation/device-mapper/era.txt [new file with mode: 0644]
drivers/md/Kconfig
drivers/md/Makefile
drivers/md/dm-era-target.c [new file with mode: 0644]