diff options
author | Neil Brown <neilb@notabene.brown> | 2008-06-27 18:31:44 -0400 |
---|---|---|
committer | Neil Brown <neilb@notabene.brown> | 2008-06-27 18:31:44 -0400 |
commit | 526647320e696f434647f38421a6ecf65b859c43 (patch) | |
tree | aa6bf13e6aa766051ba32a8b64157f4adf9fcd3e /Documentation/md.txt | |
parent | a99ac97113d5bc25ddc4d17f404c2024ac6c57f9 (diff) |
Make sure all changes to md/dev-XX/state are notified
The important state change happens during an interrupt
in md_error. So just set a flag there and call sysfs_notify
later in process context.
Signed-off-by: Neil Brown <neilb@suse.de>
Diffstat (limited to 'Documentation/md.txt')
-rw-r--r-- | Documentation/md.txt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Documentation/md.txt b/Documentation/md.txt index eb6e69e3732e..e06cc59437e4 100644 --- a/Documentation/md.txt +++ b/Documentation/md.txt | |||
@@ -297,6 +297,10 @@ Each directory contains: | |||
297 | writemostly - device will only be subject to read | 297 | writemostly - device will only be subject to read |
298 | requests if there are no other options. | 298 | requests if there are no other options. |
299 | This applies only to raid1 arrays. | 299 | This applies only to raid1 arrays. |
300 | blocked - device has failed, metadata is "external", | ||
301 | and the failure hasn't been acknowledged yet. | ||
302 | Writes that would write to this device if | ||
303 | it were not faulty are blocked. | ||
300 | spare - device is working, but not a full member. | 304 | spare - device is working, but not a full member. |
301 | This includes spares that are in the process | 305 | This includes spares that are in the process |
302 | of being recovered to | 306 | of being recovered to |
@@ -306,6 +310,12 @@ Each directory contains: | |||
306 | Writing "remove" removes the device from the array. | 310 | Writing "remove" removes the device from the array. |
307 | Writing "writemostly" sets the writemostly flag. | 311 | Writing "writemostly" sets the writemostly flag. |
308 | Writing "-writemostly" clears the writemostly flag. | 312 | Writing "-writemostly" clears the writemostly flag. |
313 | Writing "blocked" sets the "blocked" flag. | ||
314 | Writing "-blocked" clear the "blocked" flag and allows writes | ||
315 | to complete. | ||
316 | |||
317 | This file responds to select/poll. Any change to 'faulty' | ||
318 | or 'blocked' causes an event. | ||
309 | 319 | ||
310 | errors | 320 | errors |
311 | An approximate count of read errors that have been detected on | 321 | An approximate count of read errors that have been detected on |