diff options
author | Namhyung Kim <namhyung@gmail.com> | 2011-07-27 21:31:47 -0400 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2011-07-27 21:31:47 -0400 |
commit | 6e0d2d0312fb20c1edac1b2c849068c1c7944abf (patch) | |
tree | 5272bdcaf69ccc6d3f2b4e6df90a530d8ee69fbb /Documentation/md.txt | |
parent | 16c791a5af3e50d0c11760485fd68e5829f3be4d (diff) |
md: add documentation for bad block log
Previous patch in the bad block series added new sysfs interfaces
([unacknowledged_]bad_blocks) for each rdev without documentation.
Add 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 | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/Documentation/md.txt b/Documentation/md.txt index f0eee83ff78a..923a6bddce7c 100644 --- a/Documentation/md.txt +++ b/Documentation/md.txt | |||
@@ -419,7 +419,6 @@ Each directory contains: | |||
419 | written, it will be rejected. | 419 | written, it will be rejected. |
420 | 420 | ||
421 | recovery_start | 421 | recovery_start |
422 | |||
423 | When the device is not 'in_sync', this records the number of | 422 | When the device is not 'in_sync', this records the number of |
424 | sectors from the start of the device which are known to be | 423 | sectors from the start of the device which are known to be |
425 | correct. This is normally zero, but during a recovery | 424 | correct. This is normally zero, but during a recovery |
@@ -435,6 +434,20 @@ Each directory contains: | |||
435 | Setting this to 'none' is equivalent to setting 'in_sync'. | 434 | Setting this to 'none' is equivalent to setting 'in_sync'. |
436 | Setting to any other value also clears the 'in_sync' flag. | 435 | Setting to any other value also clears the 'in_sync' flag. |
437 | 436 | ||
437 | bad_blocks | ||
438 | This gives the list of all known bad blocks in the form of | ||
439 | start address and length (in sectors respectively). If output | ||
440 | is too big to fit in a page, it will be truncated. Writing | ||
441 | "sector length" to this file adds new acknowledged (i.e. | ||
442 | recorded to disk safely) bad blocks. | ||
443 | |||
444 | unacknowledged_bad_blocks | ||
445 | This gives the list of known-but-not-yet-saved-to-disk bad | ||
446 | blocks in the same form of 'bad_blocks'. If output is too big | ||
447 | to fit in a page, it will be truncated. Writing to this file | ||
448 | adds bad blocks without acknowledging them. This is largely | ||
449 | for testing. | ||
450 | |||
438 | 451 | ||
439 | 452 | ||
440 | An active md device will also contain and entry for each active device | 453 | An active md device will also contain and entry for each active device |