diff options
author | NeilBrown <neilb@suse.de> | 2011-07-28 11:31:48 +1000 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2011-07-28 11:31:48 +1000 |
commit | d7a9d443bc8a75a24873c0506f50051edfedc714 (patch) | |
tree | 6255771f6cca87698dcc8eb11d62e7fc217b8d0b /drivers/md/md.h | |
parent | 06f603851fa90bcd236328438278d4dc8b655495 (diff) | |
download | blackbird-op-linux-d7a9d443bc8a75a24873c0506f50051edfedc714.tar.gz blackbird-op-linux-d7a9d443bc8a75a24873c0506f50051edfedc714.zip |
md: add 'write_error' flag to component devices.
If a device has ever seen a write error, we will want to handle
known-bad-blocks differently.
So create an appropriate state flag and export it via sysfs.
Signed-off-by: NeilBrown <neilb@suse.de>
Reviewed-by: Namhyung Kim <namhyung@gmail.com>
Diffstat (limited to 'drivers/md/md.h')
-rw-r--r-- | drivers/md/md.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/md/md.h b/drivers/md/md.h index 7c3192c0a29a..fa4b607854ac 100644 --- a/drivers/md/md.h +++ b/drivers/md/md.h @@ -84,6 +84,9 @@ struct mdk_rdev_s #define Blocked 8 /* An error occurred on an externally * managed array, don't allow writes * until it is cleared */ +#define WriteErrorSeen 9 /* A write error has been seen on this + * device + */ wait_queue_head_t blocked_wait; int desc_nr; /* descriptor index in the superblock */ |