aboutsummaryrefslogtreecommitdiffstats
path: root/ioctl.h
diff options
context:
space:
mode:
authorGui Hecheng <guihc.fnst@cn.fujitsu.com>2014-04-10 11:55:36 +0800
committerDavid Sterba <dsterba@suse.cz>2014-04-11 19:47:30 +0200
commit2873ae9bd815836a008336ed31056c5cd2a6036a (patch)
treed715d3e30b1ab61d0627384b70f0a51b2e5001fa /ioctl.h
parentc17d0a73c11d7cdbdf1582408ec6d168876160ea (diff)
downloadbtrfs-progs-2873ae9bd815836a008336ed31056c5cd2a6036a.tar.gz
btrfs-progs-2873ae9bd815836a008336ed31056c5cd2a6036a.tar.xz
btrfs-progs-2873ae9bd815836a008336ed31056c5cd2a6036a.zip
btrfs-progs: correct prompt of minimal num of devs for raid56
For btrfs, Raid5 can't go below 2 devs, not 3; Raid6 can't go below 3 devs, not 4. Signed-off-by: Gui Hecheng <guihc.fnst@cn.fujitsu.com> Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'ioctl.h')
-rw-r--r--ioctl.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/ioctl.h b/ioctl.h
index 402317f..9627e8d 100644
--- a/ioctl.h
+++ b/ioctl.h
@@ -480,9 +480,9 @@ static inline char *btrfs_err_str(enum btrfs_err_code err_code)
case BTRFS_ERROR_DEV_RAID10_MIN_NOT_MET:
return "unable to go below four devices on raid10";
case BTRFS_ERROR_DEV_RAID5_MIN_NOT_MET:
- return "unable to go below three devices on raid5";
+ return "unable to go below two devices on raid5";
case BTRFS_ERROR_DEV_RAID6_MIN_NOT_MET:
- return "unable to go below four devices on raid6";
+ return "unable to go below three devices on raid6";
case BTRFS_ERROR_DEV_TGT_REPLACE:
return "unable to remove the dev_replace target dev";
case BTRFS_ERROR_DEV_MISSING_NOT_FOUND: