scrub.h 690 B

12345678910111213141516171819202122
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef BTRFS_SCRUB_H
  3. #define BTRFS_SCRUB_H
  4. #include <linux/types.h>
  5. struct btrfs_fs_info;
  6. struct btrfs_device;
  7. struct btrfs_scrub_progress;
  8. int btrfs_scrub_dev(struct btrfs_fs_info *fs_info, u64 devid, u64 start,
  9. u64 end, struct btrfs_scrub_progress *progress,
  10. int readonly, int is_dev_replace);
  11. void btrfs_scrub_pause(struct btrfs_fs_info *fs_info);
  12. void btrfs_scrub_continue(struct btrfs_fs_info *fs_info);
  13. int btrfs_scrub_cancel(struct btrfs_fs_info *info);
  14. int btrfs_scrub_cancel_dev(struct btrfs_device *dev);
  15. int btrfs_scrub_progress(struct btrfs_fs_info *fs_info, u64 devid,
  16. struct btrfs_scrub_progress *progress);
  17. #endif