diff options
author | Jonathan Brassow <jbrassow@redhat.com> | 2009-04-02 14:55:33 -0400 |
---|---|---|
committer | Alasdair G Kergon <agk@redhat.com> | 2009-04-02 14:55:33 -0400 |
commit | 49beb2b87a972a994ff77633234ca3bf0d30a1d8 (patch) | |
tree | 4b281ebd48624d0fbe74b93fa72baa834211ca2f /drivers/md/dm-exception-store.h | |
parent | d0216849519bec8dc96301a3cd80316e71243839 (diff) |
dm exception store: move cow pointer
Move COW device from snapshot to exception store.
Signed-off-by: Jonathan Brassow <jbrassow@redhat.com>
Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Diffstat (limited to 'drivers/md/dm-exception-store.h')
-rw-r--r-- | drivers/md/dm-exception-store.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/md/dm-exception-store.h b/drivers/md/dm-exception-store.h index 449a1e48f7aa..4dbf3577408e 100644 --- a/drivers/md/dm-exception-store.h +++ b/drivers/md/dm-exception-store.h | |||
@@ -99,6 +99,8 @@ struct dm_exception_store { | |||
99 | 99 | ||
100 | struct dm_snapshot *snap; | 100 | struct dm_snapshot *snap; |
101 | 101 | ||
102 | struct dm_dev *cow; | ||
103 | |||
102 | /* Size of data blocks saved - must be a power of 2 */ | 104 | /* Size of data blocks saved - must be a power of 2 */ |
103 | chunk_t chunk_size; | 105 | chunk_t chunk_size; |
104 | chunk_t chunk_mask; | 106 | chunk_t chunk_mask; |
@@ -155,7 +157,7 @@ int dm_exception_store_type_unregister(struct dm_exception_store_type *type); | |||
155 | 157 | ||
156 | int dm_exception_store_create(const char *type_name, struct dm_target *ti, | 158 | int dm_exception_store_create(const char *type_name, struct dm_target *ti, |
157 | chunk_t chunk_size, chunk_t chunk_mask, | 159 | chunk_t chunk_size, chunk_t chunk_mask, |
158 | chunk_t chunk_shift, | 160 | chunk_t chunk_shift, struct dm_dev *cow, |
159 | struct dm_exception_store **store); | 161 | struct dm_exception_store **store); |
160 | void dm_exception_store_destroy(struct dm_exception_store *store); | 162 | void dm_exception_store_destroy(struct dm_exception_store *store); |
161 | 163 | ||