diff options
author | Neil Brown <neilb@suse.de> | 2008-07-11 20:37:50 -0400 |
---|---|---|
committer | NeilBrown <neilb@suse.de> | 2008-07-21 00:22:18 -0400 |
commit | d7027458d68b2f1752a28016dcf2ffd0a7e8f567 (patch) | |
tree | 03bb7d75f4951eba4eff21926d1ce71c6d728260 /Documentation/md.txt | |
parent | 7e93a89251d4ed7bd4475db62616ccd03ddfd01a (diff) |
md: Tidy up rdev_size_store a bit:
- used strict_strtoull in place of simple_strtoull
- use my_mddev in place of rdev->mddev (they have the same value)
and more significantly,
- don't adjust mddev->size to fit, rather reject changes which make
rdev->size smaller than mddev->size
Adjusting mddev->size is a hangover from bind_rdev_to_array which
does a similar thing. But it really is a better design to insist that
mddev->size is set as required, then the rdev->sizes are set to allow
for that. The previous way invites confusion.
Signed-off-by: NeilBrown <neilb@suse.de>
Diffstat (limited to 'Documentation/md.txt')
-rw-r--r-- | Documentation/md.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/md.txt b/Documentation/md.txt index e06cc59437e4..1da9d1b1793f 100644 --- a/Documentation/md.txt +++ b/Documentation/md.txt | |||
@@ -347,7 +347,7 @@ Each directory contains: | |||
347 | for storage of data. This will normally be the same as the | 347 | for storage of data. This will normally be the same as the |
348 | component_size. This can be written while assembling an | 348 | component_size. This can be written while assembling an |
349 | array. If a value less than the current component_size is | 349 | array. If a value less than the current component_size is |
350 | written, component_size will be reduced to this value. | 350 | written, it will be rejected. |
351 | 351 | ||
352 | 352 | ||
353 | An active md device will also contain and entry for each active device | 353 | An active md device will also contain and entry for each active device |