dm-space-map-checker.h 703 B

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