NeilBrown acb180b0e3 md: improve usefulness and accuracy of sysfs file md/sync_completed.
The sync_completed file reports how much of a resync (or recovery or
reshape) has been completed.
However due to the possibility of out-of-order completion of writes,
it is not certain to be accurate.

We have an internal value - mddev->curr_resync_completed - which is an
accurate value (though it might not always be quite so uptodate).

So:
 - make curr_resync_completed be uptodate a little more often,
   particularly when raid5 reshape updates status in the metadata
 - report curr_resync_completed in the sysfs file
 - allow poll/select to report all updates to md/sync_completed.

This makes sync_completed completed usable by any external metadata
handler that wants to record this status information in its metadata.

Signed-off-by: NeilBrown <neilb@suse.de>
2009-04-14 16:28:34 +10:00
..
2009-04-02 19:55:28 +01:00
2009-04-02 19:55:24 +01:00
2009-04-09 00:27:12 +01:00
2009-04-09 00:27:17 +01:00
2009-04-09 00:27:13 +01:00
2009-01-06 03:05:12 +00:00
2009-04-09 00:27:13 +01:00
2007-10-20 02:01:26 +01:00
2009-04-09 00:27:16 +01:00
2009-04-09 00:27:13 +01:00
2009-04-14 12:01:53 +10:00
2009-03-31 15:00:31 +11:00
2009-04-06 14:40:07 -07:00
2009-03-31 14:57:37 +11:00
2009-03-31 15:00:31 +11:00