diff options
author | Jonathan Brassow <jbrassow@redhat.com> | 2009-04-02 14:55:35 -0400 |
---|---|---|
committer | Alasdair G Kergon <agk@redhat.com> | 2009-04-02 14:55:35 -0400 |
commit | 1e302a929e2da6e8448e2058e4b07b07252b57fe (patch) | |
tree | 3345d31926a2254a2041d62d270cba76b2590bae /drivers/md/dm-exception-store.h | |
parent | fee1998e9c690f9920671e1e0ef187a48cfbbde4 (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-exception-store.h')
-rw-r--r-- | drivers/md/dm-exception-store.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/md/dm-exception-store.h b/drivers/md/dm-exception-store.h index 023a707503c..0a2e6e7f67b 100644 --- a/drivers/md/dm-exception-store.h +++ b/drivers/md/dm-exception-store.h | |||
@@ -79,8 +79,9 @@ struct dm_exception_store_type { | |||
79 | */ | 79 | */ |
80 | void (*drop_snapshot) (struct dm_exception_store *store); | 80 | void (*drop_snapshot) (struct dm_exception_store *store); |
81 | 81 | ||
82 | int (*status) (struct dm_exception_store *store, status_type_t status, | 82 | unsigned (*status) (struct dm_exception_store *store, |
83 | char *result, unsigned int maxlen); | 83 | status_type_t status, char *result, |
84 | unsigned maxlen); | ||
84 | 85 | ||
85 | /* | 86 | /* |
86 | * Return how full the snapshot is. | 87 | * Return how full the snapshot is. |