dm snapshot: add merge target
authorMikulas Patocka <mpatocka@redhat.com>
Thu, 10 Dec 2009 23:52:30 +0000 (23:52 +0000)
committerAlasdair G Kergon <agk@redhat.com>
Thu, 10 Dec 2009 23:52:30 +0000 (23:52 +0000)
commitd698aa4500aa3ca9559142060caf0f79da998744
tree175577ce2c8ae0918e6f38a2a27ad2b124bb2466
parent4454a6216f75a9ef8c4bd0a65e34b101f725ef1e
dm snapshot: add merge target

The snapshot-merge target allows a snapshot to be merged back into the
snapshot's origin device.

One anticipated use of snapshot merging is the rollback of filesystems
to back out problematic system upgrades.

This patch adds snapshot-merge target management to both
dm_snapshot_init() and dm_snapshot_exit().  As an initial place-holder,
snapshot-merge is identical to the snapshot target.  Documentation is
provided.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Documentation/device-mapper/snapshot.txt
drivers/md/dm-snap.c