2 * Copyright (C) 2011 Red Hat, Inc.
4 * This file is released under the GPL.
7 #ifndef SNAPSHOTS_SPACE_MAP_CHECKER_H
8 #define SNAPSHOTS_SPACE_MAP_CHECKER_H
10 #include "dm-space-map.h"
12 /*----------------------------------------------------------------*/
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.
19 * Ownership of @sm passes.
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
);
24 /*----------------------------------------------------------------*/