aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-snap.c
diff options
context:
space:
mode:
authorJonathan Brassow <jbrassow@redhat.com>2009-04-02 14:55:35 -0400
committerAlasdair G Kergon <agk@redhat.com>2009-04-02 14:55:35 -0400
commit1e302a929e2da6e8448e2058e4b07b07252b57fe (patch)
tree3345d31926a2254a2041d62d270cba76b2590bae /drivers/md/dm-snap.c
parentfee1998e9c690f9920671e1e0ef187a48cfbbde4 (diff)
dm snapshot: move status to exception store
Let the exception store types print out their status through the new API, rather than having the snapshot code do it. Adjust the buffer position to allow for the preceding DMEMIT in the arguments to type->status(). Signed-off-by: Jonathan Brassow <jbrassow@redhat.com> Signed-off-by: Alasdair G Kergon <agk@redhat.com>
Diffstat (limited to 'drivers/md/dm-snap.c')
-rw-r--r--drivers/md/dm-snap.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/md/dm-snap.c b/drivers/md/dm-snap.c
index 974916b9ea21..981a0413068f 100644
--- a/drivers/md/dm-snap.c
+++ b/drivers/md/dm-snap.c
@@ -70,9 +70,6 @@ struct dm_snapshot {
70 /* Origin writes don't trigger exceptions until this is set */ 70 /* Origin writes don't trigger exceptions until this is set */
71 int active; 71 int active;
72 72
73 /* Used for display of table */
74 char type;
75
76 mempool_t *pending_pool; 73 mempool_t *pending_pool;
77 74
78 atomic_t pending_exceptions_count; 75 atomic_t pending_exceptions_count;
@@ -1166,9 +1163,8 @@ static int snapshot_status(struct dm_target *ti, status_type_t type,
1166 * make sense. 1163 * make sense.
1167 */ 1164 */
1168 DMEMIT("%s", snap->origin->name); 1165 DMEMIT("%s", snap->origin->name);
1169 DMEMIT(" %s %s %llu", snap->store->cow->name, 1166 snap->store->type->status(snap->store, type, result + sz,
1170 snap->store->type->name, 1167 maxlen - sz);
1171 (unsigned long long)snap->store->chunk_size);
1172 break; 1168 break;
1173 } 1169 }
1174 1170