aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/dm-snap-persistent.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md/dm-snap-persistent.c')
-rw-r--r--drivers/md/dm-snap-persistent.c16
1 files changed, 12 insertions, 4 deletions
diff --git a/drivers/md/dm-snap-persistent.c b/drivers/md/dm-snap-persistent.c
index 3907c4ce2ae5..1799205cd945 100644
--- a/drivers/md/dm-snap-persistent.c
+++ b/drivers/md/dm-snap-persistent.c
@@ -688,11 +688,19 @@ static int persistent_ctr(struct dm_exception_store *store,
688 return 0; 688 return 0;
689} 689}
690 690
691static int persistent_status(struct dm_exception_store *store, 691static unsigned persistent_status(struct dm_exception_store *store,
692 status_type_t status, char *result, 692 status_type_t status, char *result,
693 unsigned int maxlen) 693 unsigned maxlen)
694{ 694{
695 int sz = 0; 695 unsigned sz = 0;
696
697 switch (status) {
698 case STATUSTYPE_INFO:
699 break;
700 case STATUSTYPE_TABLE:
701 DMEMIT(" %s P %llu", store->cow->name,
702 (unsigned long long)store->chunk_size);
703 }
696 704
697 return sz; 705 return sz;
698} 706}