diff options
author | Neil Brown <neilb@notabene.brown> | 2008-06-28 00:31:33 +0200 |
---|---|---|
committer | Neil Brown <neilb@notabene.brown> | 2008-06-28 00:31:33 +0200 |
commit | 199050ea1ff2270174ee525b73bc4c3323098897 (patch) | |
tree | b2a7851511b2ddb943b9ff7ce7c8a96c3ac2a8bb /scripts | |
parent | Support adding a spare to a live md array with external metadata. (diff) | |
download | linux-199050ea1ff2270174ee525b73bc4c3323098897.tar.xz linux-199050ea1ff2270174ee525b73bc4c3323098897.zip |
rationalise return value for ->hot_add_disk method.
For all array types but linear, ->hot_add_disk returns 1 on
success, 0 on failure.
For linear, it returns 0 on success and -errno on failure.
This doesn't cause a functional problem because the ->hot_add_disk
function of linear is used quite differently to the others.
However it is confusing.
So convert all to return 0 for success or -errno on failure
and fix call sites to match.
Signed-off-by: Neil Brown <neilb@suse.de>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions