diff options
author | NeilBrown <neilb@suse.com> | 2016-11-25 10:55:49 +1100 |
---|---|---|
committer | Jes Sorensen <Jes.Sorensen@redhat.com> | 2016-11-28 08:50:36 -0500 |
commit | 71574efb077131701b3da874df0045f259ca3448 (patch) | |
tree | ef0279065d848d79848e164a5acdf4317a952c22 /mdadm.h | |
parent | cf52eff58ab9d08e3d016c4f22da8adfc295d7e0 (diff) | |
download | mdadm-71574efb077131701b3da874df0045f259ca3448.tar.gz |
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 'mdadm.h')
-rw-r--r--[-rwxr-xr-x] | mdadm.h | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -383,6 +383,8 @@ enum special_options { ConfigFile, ChunkSize, WriteMostly, + FailFast, + NoFailFast, Layout, Auto, Force, @@ -516,6 +518,7 @@ struct mddev_dev { * Not set for names read from .config */ char writemostly; /* 1 for 'set writemostly', 2 for 'clear writemostly' */ + char failfast; /* Ditto but for 'failfast' flag */ int used; /* set when used */ long long data_offset; struct mddev_dev *next; @@ -821,6 +824,8 @@ extern struct superswitch { * linear-grow-update - now change the size of the array. * writemostly - set the WriteMostly1 bit in the superblock devflags * readwrite - clear the WriteMostly1 bit in the superblock devflags + * failfast - set the FailFast1 bit in the superblock + * nofailfast - clear the FailFast1 bit * no-bitmap - clear any record that a bitmap is present. * bbl - add a bad-block-log if possible * no-bbl - remove any bad-block-log is it is empty. |