diff options
author | Alasdair G Kergon <agk@redhat.com> | 2006-02-01 06:04:50 -0500 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-02-01 11:53:10 -0500 |
commit | aa14edeb994f8f7e223d02ad14780bf2fa719f6d (patch) | |
tree | 07fb8ba39d619708bdc0a68a32d4a7296abd955c /drivers/md/dm-snap.h | |
parent | cb82a6cdf994d6656ad0a25ed28395af3416a27c (diff) |
[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>
Diffstat (limited to 'drivers/md/dm-snap.h')
-rw-r--r-- | drivers/md/dm-snap.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/md/dm-snap.h b/drivers/md/dm-snap.h index 375aa24d4d7d..fdec1e2dc871 100644 --- a/drivers/md/dm-snap.h +++ b/drivers/md/dm-snap.h | |||
@@ -99,7 +99,9 @@ struct dm_snapshot { | |||
99 | 99 | ||
100 | /* You can't use a snapshot if this is 0 (e.g. if full) */ | 100 | /* You can't use a snapshot if this is 0 (e.g. if full) */ |
101 | int valid; | 101 | int valid; |
102 | int have_metadata; | 102 | |
103 | /* Origin writes don't trigger exceptions until this is set */ | ||
104 | int active; | ||
103 | 105 | ||
104 | /* Used for display of table */ | 106 | /* Used for display of table */ |
105 | char type; | 107 | char type; |