diff options
author | Mike Snitzer <snitzer@redhat.com> | 2009-12-10 18:52:11 -0500 |
---|---|---|
committer | Alasdair G Kergon <agk@redhat.com> | 2009-12-10 18:52:11 -0500 |
commit | 985903bb3a6d98623360ab6c855417f638840029 (patch) | |
tree | 64e7582e0b7827aa318c4fe1c497ebc541d9ce8b /drivers/md/dm-exception-store.h | |
parent | 3510cb94ff7b04b016bd22bfee913e2c1c05c066 (diff) |
dm snapshot: add allocated metadata to snapshot status
Add number of sectors used by metadata to the end of the snapshot's status
line.
Renamed dm_exception_store_type's 'fraction_full' to 'usage'. Renamed
arguments to be clearer about what is being returned. Also added
'metadata_sectors'.
Signed-off-by: Mike Snitzer <snitzer@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 | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/md/dm-exception-store.h b/drivers/md/dm-exception-store.h index 92749696e359..366c8b1fca37 100644 --- a/drivers/md/dm-exception-store.h +++ b/drivers/md/dm-exception-store.h | |||
@@ -86,9 +86,9 @@ struct dm_exception_store_type { | |||
86 | /* | 86 | /* |
87 | * Return how full the snapshot is. | 87 | * Return how full the snapshot is. |
88 | */ | 88 | */ |
89 | void (*fraction_full) (struct dm_exception_store *store, | 89 | void (*usage) (struct dm_exception_store *store, |
90 | sector_t *numerator, | 90 | sector_t *total_sectors, sector_t *sectors_allocated, |
91 | sector_t *denominator); | 91 | sector_t *metadata_sectors); |
92 | 92 | ||
93 | /* For internal device-mapper use only. */ | 93 | /* For internal device-mapper use only. */ |
94 | struct list_head list; | 94 | struct list_head list; |