diff options
author | Dan Williams <dan.j.williams@intel.com> | 2009-12-12 23:17:12 -0500 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2009-12-13 20:58:57 -0500 |
commit | 06e3c817b750c131a20e82eed57a17841ea88ed2 (patch) | |
tree | 55da529f662c29da5b5fd202b5ece9fb907aa431 /Documentation | |
parent | 4e59ca7da05f0d5d3ad40365c502c8b0fd24c7e3 (diff) |
md: add 'recovery_start' per-device sysfs attribute
Enable external metadata arrays to manage rebuild checkpointing via a
md/dev-XXX/recovery_start attribute which reflects rdev->recovery_offset
Also update resync_start_store to allow 'none' to be written, for
consistency.
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'Documentation')
-rw-r--r-- | Documentation/md.txt | 27 |
1 files changed, 23 insertions, 4 deletions
diff --git a/Documentation/md.txt b/Documentation/md.txt index 21d26fb5d02b..188f4768f1d5 100644 --- a/Documentation/md.txt +++ b/Documentation/md.txt | |||
@@ -233,9 +233,9 @@ All md devices contain: | |||
233 | 233 | ||
234 | resync_start | 234 | resync_start |
235 | The point at which resync should start. If no resync is needed, | 235 | The point at which resync should start. If no resync is needed, |
236 | this will be a very large number. At array creation it will | 236 | this will be a very large number (or 'none' since 2.6.30-rc1). At |
237 | default to 0, though starting the array as 'clean' will | 237 | array creation it will default to 0, though starting the array as |
238 | set it much larger. | 238 | 'clean' will set it much larger. |
239 | 239 | ||
240 | new_dev | 240 | new_dev |
241 | This file can be written but not read. The value written should | 241 | This file can be written but not read. The value written should |
@@ -379,8 +379,9 @@ Each directory contains: | |||
379 | Writing "writemostly" sets the writemostly flag. | 379 | Writing "writemostly" sets the writemostly flag. |
380 | Writing "-writemostly" clears the writemostly flag. | 380 | Writing "-writemostly" clears the writemostly flag. |
381 | Writing "blocked" sets the "blocked" flag. | 381 | Writing "blocked" sets the "blocked" flag. |
382 | Writing "-blocked" clear the "blocked" flag and allows writes | 382 | Writing "-blocked" clears the "blocked" flag and allows writes |
383 | to complete. | 383 | to complete. |
384 | Writing "in_sync" sets the in_sync flag. | ||
384 | 385 | ||
385 | This file responds to select/poll. Any change to 'faulty' | 386 | This file responds to select/poll. Any change to 'faulty' |
386 | or 'blocked' causes an event. | 387 | or 'blocked' causes an event. |
@@ -417,6 +418,24 @@ Each directory contains: | |||
417 | array. If a value less than the current component_size is | 418 | array. If a value less than the current component_size is |
418 | written, it will be rejected. | 419 | written, it will be rejected. |
419 | 420 | ||
421 | recovery_start | ||
422 | |||
423 | 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 | ||
425 | correct. This is normally zero, but during a recovery | ||
426 | operation is will steadily increase, and if the recovery is | ||
427 | interrupted, restoring this value can cause recovery to | ||
428 | avoid repeating the earlier blocks. With v1.x metadata, this | ||
429 | value is saved and restored automatically. | ||
430 | |||
431 | This can be set whenever the device is not an active member of | ||
432 | the array, either before the array is activated, or before | ||
433 | the 'slot' is set. | ||
434 | |||
435 | Setting this to 'none' is equivalent to setting 'in_sync'. | ||
436 | Setting to any other value also clears the 'in_sync' flag. | ||
437 | |||
438 | |||
420 | 439 | ||
421 | An active md device will also contain and entry for each active device | 440 | An active md device will also contain and entry for each active device |
422 | in the array. These are named | 441 | in the array. These are named |