]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] device-mapper snapshot: load metadata on creation
authorAlasdair G Kergon <agk@redhat.com>
Wed, 1 Feb 2006 11:04:50 +0000 (03:04 -0800)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 1 Feb 2006 16:53:10 +0000 (08:53 -0800)
commita69a6fee9a95f3253f9a68f759f121f42052c3ad
tree07fb8ba39d619708bdc0a68a32d4a7296abd955c
parent937e3e12676078bad3bb5f860e3b1d0bc52bc49e
[PATCH] device-mapper snapshot: load metadata on creation

Move snapshot metadata loading to happen when the table is created instead of
when the device is resumed.  Writes to the origin device don't trigger
exceptions until each snapshot table becomes active when resume() is called on
each snapshot.

If you're using lvm2, for this patch to work properly you should update to
lvm2 version 2.02.01 or later and device-mapper version 1.02.02 or later.

Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/md/dm-snap.c
drivers/md/dm-snap.h