0001
0002
0003
0004
0005
0006 #ifndef BTRFS_DEV_REPLACE_H
0007 #define BTRFS_DEV_REPLACE_H
0008
0009 struct btrfs_ioctl_dev_replace_args;
0010
0011 int btrfs_init_dev_replace(struct btrfs_fs_info *fs_info);
0012 int btrfs_run_dev_replace(struct btrfs_trans_handle *trans);
0013 int btrfs_dev_replace_by_ioctl(struct btrfs_fs_info *fs_info,
0014 struct btrfs_ioctl_dev_replace_args *args);
0015 void btrfs_dev_replace_status(struct btrfs_fs_info *fs_info,
0016 struct btrfs_ioctl_dev_replace_args *args);
0017 int btrfs_dev_replace_cancel(struct btrfs_fs_info *fs_info);
0018 void btrfs_dev_replace_suspend_for_unmount(struct btrfs_fs_info *fs_info);
0019 int btrfs_resume_dev_replace_async(struct btrfs_fs_info *fs_info);
0020 int __pure btrfs_dev_replace_is_ongoing(struct btrfs_dev_replace *dev_replace);
0021 bool btrfs_finish_block_group_to_copy(struct btrfs_device *srcdev,
0022 struct btrfs_block_group *cache,
0023 u64 physical);
0024
0025 #endif