aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-exception-store.h
diff options
context:
space:
mode:
authorJonathan Brassow <jbrassow@redhat.com>2009-04-02 14:55:32 -0400
committerAlasdair G Kergon <agk@redhat.com>2009-04-02 14:55:32 -0400
commitd0216849519bec8dc96301a3cd80316e71243839 (patch)
tree06e7f1d2028e784213e17f1a8ea1abae9ffb0ab9 /drivers/md/dm-exception-store.h
parent0cea9c78270cdf1d2ad74ce0e083d5555a0842e8 (diff)
dm exception store: move chunk_fields
Move chunk fields 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.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/drivers/md/dm-exception-store.h b/drivers/md/dm-exception-store.h
index 4b7f7d441f5f..449a1e48f7aa 100644
--- a/drivers/md/dm-exception-store.h
+++ b/drivers/md/dm-exception-store.h
@@ -99,6 +99,11 @@ struct dm_exception_store {
99 99
100 struct dm_snapshot *snap; 100 struct dm_snapshot *snap;
101 101
102 /* Size of data blocks saved - must be a power of 2 */
103 chunk_t chunk_size;
104 chunk_t chunk_mask;
105 chunk_t chunk_shift;
106
102 void *context; 107 void *context;
103}; 108};
104 109
@@ -149,6 +154,8 @@ int dm_exception_store_type_register(struct dm_exception_store_type *type);
149int dm_exception_store_type_unregister(struct dm_exception_store_type *type); 154int dm_exception_store_type_unregister(struct dm_exception_store_type *type);
150 155
151int dm_exception_store_create(const char *type_name, struct dm_target *ti, 156int dm_exception_store_create(const char *type_name, struct dm_target *ti,
157 chunk_t chunk_size, chunk_t chunk_mask,
158 chunk_t chunk_shift,
152 struct dm_exception_store **store); 159 struct dm_exception_store **store);
153void dm_exception_store_destroy(struct dm_exception_store *store); 160void dm_exception_store_destroy(struct dm_exception_store *store);
154 161