]> git.baikalelectronics.ru Git - kernel.git/commit
md: improve errno return when setting array_size
authorNeilBrown <neilb@suse.de>
Mon, 25 May 2009 23:41:17 +0000 (09:41 +1000)
committerNeilBrown <neilb@suse.de>
Mon, 25 May 2009 23:41:17 +0000 (09:41 +1000)
commitf50becdb50e0834260900e0dbfa5d6d8dd25f97c
tree14c01b6dd6b596859835b3f0d176bf02129d2c45
parent26c22bde7824f81d924f15df3f1f6baf87637cb1
md: improve errno return when setting array_size

Instead of always returns EINVAL if anything goes wrong
when setting the array size, add the option of
  E2BIG
if the size requested is too large.  This makes it easier
for user-space to be sure what went wrong.

Signed-off-by: NeilBrown <neilb@suse.de>
drivers/md/md.c