diff options
author | NeilBrown <neilb@suse.com> | 2016-11-25 00:55:49 +0100 |
---|---|---|
committer | Jes Sorensen <Jes.Sorensen@redhat.com> | 2016-11-28 14:50:36 +0100 |
commit | 71574efb077131701b3da874df0045f259ca3448 (patch) | |
tree | ef0279065d848d79848e164a5acdf4317a952c22 /Create.c | |
parent | Increase buffer for sysfs disk state (diff) | |
download | mdadm-71574efb077131701b3da874df0045f259ca3448.tar.xz mdadm-71574efb077131701b3da874df0045f259ca3448.zip |
Add failfast support.
Allow per-device "failfast" flag to be set when creating an
array or adding devices to an array.
When re-adding a device which had the failfast flag, it can be removed
using --nofailfast.
failfast status is printed in --detail and --examine output.
Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Diffstat (limited to 'Create.c')
-rw-r--r-- | Create.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -890,6 +890,8 @@ int Create(struct supertype *st, char *mddev, if (dv->writemostly == 1) inf->disk.state |= (1<<MD_DISK_WRITEMOSTLY); + if (dv->failfast == 1) + inf->disk.state |= (1<<MD_DISK_FAILFAST); if (have_container) fd = -1; |