summaryrefslogtreecommitdiff
path: root/ioctl.h
diff options
context:
space:
mode:
authorEryu Guan <guaneryu@gmail.com>2014-10-13 12:42:13 +0800
committerDavid Sterba <dsterba@suse.cz>2014-11-25 18:50:58 +0100
commitb5e1ca5a49eade75bd411d0f6b5c6adb2257de31 (patch)
treef2a370a16ffdc5e2241e428813c409e18844d5b9 /ioctl.h
parentc38aa53268b8fb45dbd990061399e7a5f79887f0 (diff)
btrfs-progs: add new dev replace result
A new dev replace result was introduced by kernel commit Btrfs: return failure if btrfs_dev_replace_finishing() failed Make the userspace know about the new result too. Signed-off-by: Eryu Guan <guaneryu@gmail.com> Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'ioctl.h')
-rw-r--r--ioctl.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/ioctl.h b/ioctl.h
index df9e4b7a..67c8de98 100644
--- a/ioctl.h
+++ b/ioctl.h
@@ -145,6 +145,7 @@ struct btrfs_ioctl_dev_replace_status_params {
#define BTRFS_IOCTL_DEV_REPLACE_RESULT_NO_ERROR 0
#define BTRFS_IOCTL_DEV_REPLACE_RESULT_NOT_STARTED 1
#define BTRFS_IOCTL_DEV_REPLACE_RESULT_ALREADY_STARTED 2
+#define BTRFS_IOCTL_DEV_REPLACE_RESULT_SCRUB_INPROGRESS 3
struct btrfs_ioctl_dev_replace_args {
__u64 cmd; /* in */
__u64 result; /* out */