diff options
| author | Jonathan Brassow <jbrassow@redhat.com> | 2009-04-02 19:55:33 +0100 | 
|---|---|---|
| committer | Alasdair G Kergon <agk@redhat.com> | 2009-04-02 19:55:33 +0100 | 
| commit | 49beb2b87a972a994ff77633234ca3bf0d30a1d8 (patch) | |
| tree | 4b281ebd48624d0fbe74b93fa72baa834211ca2f /drivers/md/dm-exception-store.c | |
| parent | d0216849519bec8dc96301a3cd80316e71243839 (diff) | |
| download | olio-linux-3.10-49beb2b87a972a994ff77633234ca3bf0d30a1d8.tar.xz olio-linux-3.10-49beb2b87a972a994ff77633234ca3bf0d30a1d8.zip  | |
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.c')
| -rw-r--r-- | drivers/md/dm-exception-store.c | 4 | 
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/md/dm-exception-store.c b/drivers/md/dm-exception-store.c index 59c949b5310..2078b92470a 100644 --- a/drivers/md/dm-exception-store.c +++ b/drivers/md/dm-exception-store.c @@ -139,7 +139,7 @@ EXPORT_SYMBOL(dm_exception_store_type_unregister);  int dm_exception_store_create(const char *type_name, struct dm_target *ti,  			      chunk_t chunk_size, chunk_t chunk_mask, -			      chunk_t chunk_shift, +			      chunk_t chunk_shift, struct dm_dev *cow,  			      struct dm_exception_store **store)  {  	int r = 0; @@ -163,6 +163,8 @@ int dm_exception_store_create(const char *type_name, struct dm_target *ti,  	tmp_store->chunk_mask = chunk_mask;  	tmp_store->chunk_shift = chunk_shift; +	tmp_store->cow = cow; +  	r = type->ctr(tmp_store, 0, NULL);  	if (r) {  		put_type(type);  |