summaryrefslogtreecommitdiff
path: root/cmds-replace.c
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 /cmds-replace.c
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 'cmds-replace.c')
-rw-r--r--cmds-replace.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmds-replace.c b/cmds-replace.c
index f7cb0b23..63d34f94 100644
--- a/cmds-replace.c
+++ b/cmds-replace.c
@@ -53,6 +53,8 @@ static const char *replace_dev_result2string(__u64 result)
return "not started";
case BTRFS_IOCTL_DEV_REPLACE_RESULT_ALREADY_STARTED:
return "already started";
+ case BTRFS_IOCTL_DEV_REPLACE_RESULT_SCRUB_INPROGRESS:
+ return "scrub is in progress";
default:
return "<illegal result value>";
}