dm-space-map-disk.h 603 B

12345678910111213141516171819202122232425
  1. /*
  2. * Copyright (C) 2011 Red Hat, Inc.
  3. *
  4. * This file is released under the GPL.
  5. */
  6. #ifndef _LINUX_DM_SPACE_MAP_DISK_H
  7. #define _LINUX_DM_SPACE_MAP_DISK_H
  8. #include "dm-block-manager.h"
  9. struct dm_space_map;
  10. struct dm_transaction_manager;
  11. /*
  12. * Unfortunately we have to use two-phase construction due to the cycle
  13. * between the tm and sm.
  14. */
  15. struct dm_space_map *dm_sm_disk_create(struct dm_transaction_manager *tm,
  16. dm_block_t nr_blocks);
  17. struct dm_space_map *dm_sm_disk_open(struct dm_transaction_manager *tm,
  18. void *root, size_t len);
  19. #endif /* _LINUX_DM_SPACE_MAP_DISK_H */