NeilBrown 284ae7cab0 [PATCH] md: Handle overflow of mdu_array_info_t->size better
mdu_array_info_t->size is 'int', which isn't big enough for the size (in KB of
each component in) some arrays.

So rather than a random overflow, set size to -1 when it cannot be set
correctly.

To update aspect on an array, userspace will sometimes:
  get_array_info
  change one field
  set_array_info

in this case, we don't want the '-1' in 'size' to change to size, or look like
a size change at all.  So test for that in update_array_info.

Signed-off-by: Neil Brown <neilb@suse.de>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
2006-02-03 08:31:59 -08:00
..
2006-01-31 03:25:09 -05:00
2006-01-31 17:23:36 -08:00
2006-02-03 08:31:59 -08:00
2006-01-18 19:20:31 -08:00
2006-01-14 18:27:13 -08:00
2006-02-01 08:53:19 -08:00
2005-10-30 17:37:32 -08:00
2006-01-14 10:41:42 -08:00
2006-01-13 16:29:56 -08:00
2006-01-10 00:08:17 +01:00
2006-01-18 19:20:31 -08:00
2006-01-18 19:20:31 -08:00