diff options
author | Namhyung Kim <namhyung@gmail.com> | 2011-07-27 21:31:48 -0400 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2011-07-27 21:31:48 -0400 |
commit | 0b7d83865cb7a60b1768212c1e60b8fd7c280506 (patch) | |
tree | 6a2bd09b219504e4ae8649d77eff487191667d24 /Documentation/md.txt | |
parent | de393cdea66cbd63c90725663f400c76faf1b255 (diff) |
md: update documentation for md/rdev/state sysfs interface
Previous patches in the bad block series extended behavior of
rdev's 'state' interface but lacked documentation update.
Fix it.
Signed-off-by: Namhyung Kim <namhyung@gmail.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'Documentation/md.txt')
-rw-r--r-- | Documentation/md.txt | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/Documentation/md.txt b/Documentation/md.txt index 923a6bddce7c..fc94770f44ab 100644 --- a/Documentation/md.txt +++ b/Documentation/md.txt | |||
@@ -360,18 +360,20 @@ Each directory contains: | |||
360 | A file recording the current state of the device in the array | 360 | A file recording the current state of the device in the array |
361 | which can be a comma separated list of | 361 | which can be a comma separated list of |
362 | faulty - device has been kicked from active use due to | 362 | faulty - device has been kicked from active use due to |
363 | a detected fault | 363 | a detected fault or it has unacknowledged bad |
364 | blocks | ||
364 | in_sync - device is a fully in-sync member of the array | 365 | in_sync - device is a fully in-sync member of the array |
365 | writemostly - device will only be subject to read | 366 | writemostly - device will only be subject to read |
366 | requests if there are no other options. | 367 | requests if there are no other options. |
367 | This applies only to raid1 arrays. | 368 | This applies only to raid1 arrays. |
368 | blocked - device has failed, metadata is "external", | 369 | blocked - device has failed, and the failure hasn't been |
369 | and the failure hasn't been acknowledged yet. | 370 | acknowledged yet by the metadata handler. |
370 | Writes that would write to this device if | 371 | Writes that would write to this device if |
371 | it were not faulty are blocked. | 372 | it were not faulty are blocked. |
372 | spare - device is working, but not a full member. | 373 | spare - device is working, but not a full member. |
373 | This includes spares that are in the process | 374 | This includes spares that are in the process |
374 | of being recovered to | 375 | of being recovered to |
376 | write_error - device has ever seen a write error. | ||
375 | This list may grow in future. | 377 | This list may grow in future. |
376 | This can be written to. | 378 | This can be written to. |
377 | Writing "faulty" simulates a failure on the device. | 379 | Writing "faulty" simulates a failure on the device. |
@@ -379,9 +381,11 @@ Each directory contains: | |||
379 | Writing "writemostly" sets the writemostly flag. | 381 | Writing "writemostly" sets the writemostly flag. |
380 | Writing "-writemostly" clears the writemostly flag. | 382 | Writing "-writemostly" clears the writemostly flag. |
381 | Writing "blocked" sets the "blocked" flag. | 383 | Writing "blocked" sets the "blocked" flag. |
382 | Writing "-blocked" clears the "blocked" flag and allows writes | 384 | Writing "-blocked" clears the "blocked" flags and allows writes |
383 | to complete. | 385 | to complete and possibly simulates an error. |
384 | Writing "in_sync" sets the in_sync flag. | 386 | Writing "in_sync" sets the in_sync flag. |
387 | Writing "write_error" sets writeerrorseen flag. | ||
388 | Writing "-write_error" clears writeerrorseen flag. | ||
385 | 389 | ||
386 | This file responds to select/poll. Any change to 'faulty' | 390 | This file responds to select/poll. Any change to 'faulty' |
387 | or 'blocked' causes an event. | 391 | or 'blocked' causes an event. |