| Joe Thornber | 3241b1d | 2011-10-31 20:19:11 +0000 | [diff] [blame] | 1 | /* | 
 | 2 |  * Copyright (C) 2011 Red Hat, Inc. | 
 | 3 |  * | 
 | 4 |  * This file is released under the GPL. | 
 | 5 |  */ | 
 | 6 |  | 
 | 7 | #ifndef SNAPSHOTS_SPACE_MAP_CHECKER_H | 
 | 8 | #define SNAPSHOTS_SPACE_MAP_CHECKER_H | 
 | 9 |  | 
 | 10 | #include "dm-space-map.h" | 
 | 11 |  | 
 | 12 | /*----------------------------------------------------------------*/ | 
 | 13 |  | 
 | 14 | /* | 
 | 15 |  * This space map wraps a real on-disk space map, and verifies all of its | 
 | 16 |  * operations.  It uses a lot of memory, so only use if you have a specific | 
 | 17 |  * problem that you're debugging. | 
 | 18 |  * | 
 | 19 |  * Ownership of @sm passes. | 
 | 20 |  */ | 
 | 21 | struct dm_space_map *dm_sm_checker_create(struct dm_space_map *sm); | 
 | 22 | struct dm_space_map *dm_sm_checker_create_fresh(struct dm_space_map *sm); | 
 | 23 |  | 
 | 24 | /*----------------------------------------------------------------*/ | 
 | 25 |  | 
 | 26 | #endif |