diff options
author | NeilBrown <neilb@suse.de> | 2011-07-27 21:31:48 -0400 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2011-07-27 21:31:48 -0400 |
commit | d7a9d443bc8a75a24873c0506f50051edfedc714 (patch) | |
tree | 6255771f6cca87698dcc8eb11d62e7fc217b8d0b /drivers/md/md.h | |
parent | 06f603851fa90bcd236328438278d4dc8b655495 (diff) |
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 | |||
84 | #define Blocked 8 /* An error occurred on an externally | 84 | #define Blocked 8 /* An error occurred on an externally |
85 | * managed array, don't allow writes | 85 | * managed array, don't allow writes |
86 | * until it is cleared */ | 86 | * until it is cleared */ |
87 | #define WriteErrorSeen 9 /* A write error has been seen on this | ||
88 | * device | ||
89 | */ | ||
87 | wait_queue_head_t blocked_wait; | 90 | wait_queue_head_t blocked_wait; |
88 | 91 | ||
89 | int desc_nr; /* descriptor index in the superblock */ | 92 | int desc_nr; /* descriptor index in the superblock */ |