dm snapshot: use merge origin if snapshot invalid
authorMikulas Patocka <mpatocka@redhat.com>
Thu, 10 Dec 2009 23:52:36 +0000 (23:52 +0000)
committerAlasdair G Kergon <agk@redhat.com>
Thu, 10 Dec 2009 23:52:36 +0000 (23:52 +0000)
commitd2fdb776e08d4231d7e86a879cc663a93913c202
tree92c892ecca2bd1c9d405ba4cdaa85ba26a190023
parentd8ddb1cfff0070479c1f4a07c1d4a48ef8cb188e
dm snapshot: use merge origin if snapshot invalid

If the snapshot we are merging became invalid (e.g. it ran out of
space) redirect all I/O directly to the origin device.

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