2022-10-26 19:08:35 +00:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
|
|
|
|
|
|
|
#ifndef BTRFS_SCRUB_H
|
|
|
|
#define BTRFS_SCRUB_H
|
|
|
|
|
2024-01-26 23:53:06 +00:00
|
|
|
#include <linux/types.h>
|
|
|
|
|
|
|
|
struct btrfs_fs_info;
|
|
|
|
struct btrfs_device;
|
|
|
|
struct btrfs_scrub_progress;
|
|
|
|
|
2022-10-26 19:08:35 +00:00
|
|
|
int btrfs_scrub_dev(struct btrfs_fs_info *fs_info, u64 devid, u64 start,
|
|
|
|
u64 end, struct btrfs_scrub_progress *progress,
|
|
|
|
int readonly, int is_dev_replace);
|
|
|
|
void btrfs_scrub_pause(struct btrfs_fs_info *fs_info);
|
|
|
|
void btrfs_scrub_continue(struct btrfs_fs_info *fs_info);
|
|
|
|
int btrfs_scrub_cancel(struct btrfs_fs_info *info);
|
|
|
|
int btrfs_scrub_cancel_dev(struct btrfs_device *dev);
|
|
|
|
int btrfs_scrub_progress(struct btrfs_fs_info *fs_info, u64 devid,
|
|
|
|
struct btrfs_scrub_progress *progress);
|
|
|
|
|
|
|
|
#endif
|