2018-04-03 20:16:55 +03:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
2012-11-06 14:43:11 +04:00
|
|
|
/*
|
|
|
|
* Copyright (C) STRATO AG 2012. All rights reserved.
|
|
|
|
*/
|
|
|
|
|
2018-04-03 20:16:55 +03:00
|
|
|
#ifndef BTRFS_DEV_REPLACE_H
|
|
|
|
#define BTRFS_DEV_REPLACE_H
|
2012-11-06 14:43:11 +04:00
|
|
|
|
2012-11-05 20:33:06 +04:00
|
|
|
struct btrfs_ioctl_dev_replace_args;
|
|
|
|
|
|
|
|
int btrfs_init_dev_replace(struct btrfs_fs_info *fs_info);
|
|
|
|
int btrfs_run_dev_replace(struct btrfs_trans_handle *trans,
|
|
|
|
struct btrfs_fs_info *fs_info);
|
2016-06-23 01:54:24 +03:00
|
|
|
int btrfs_dev_replace_by_ioctl(struct btrfs_fs_info *fs_info,
|
2012-11-05 20:33:06 +04:00
|
|
|
struct btrfs_ioctl_dev_replace_args *args);
|
|
|
|
void btrfs_dev_replace_status(struct btrfs_fs_info *fs_info,
|
|
|
|
struct btrfs_ioctl_dev_replace_args *args);
|
2018-02-12 18:33:31 +03:00
|
|
|
int btrfs_dev_replace_cancel(struct btrfs_fs_info *fs_info);
|
2012-11-05 20:33:06 +04:00
|
|
|
void btrfs_dev_replace_suspend_for_unmount(struct btrfs_fs_info *fs_info);
|
|
|
|
int btrfs_resume_dev_replace_async(struct btrfs_fs_info *fs_info);
|
|
|
|
int btrfs_dev_replace_is_ongoing(struct btrfs_dev_replace *dev_replace);
|
|
|
|
|
2012-11-06 14:43:11 +04:00
|
|
|
#endif
|