diff options
author | Dan Williams <dan.j.williams@intel.com> | 2009-12-01 16:04:06 -0700 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2009-12-01 16:04:06 -0700 |
commit | a7dd165b4ea5c3db8dd05f4594e8dea783296ae3 (patch) | |
tree | 3ecb283a693f9c8505241664e971dfa909363fb7 /Monitor.c | |
parent | 2ed4f75388f99968be58097941a9704f6e42d701 (diff) | |
download | mdadm-a7dd165b4ea5c3db8dd05f4594e8dea783296ae3.tar.gz mdadm-a7dd165b4ea5c3db8dd05f4594e8dea783296ae3.tar.xz mdadm-a7dd165b4ea5c3db8dd05f4594e8dea783296ae3.zip |
imsm: catch attempt to auto-layout zero-length arrays
When -z is omitted reserve_space() looks to satisfy a zero length
allocation which lo and behold is equal to the amount of free space on a
full disk. So, catch maxsize == 0 and simplify the return value from
merge_extents() to always equal amount of free space (no benefit to
having a special case ~0ULL == error).
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'Monitor.c')
0 files changed, 0 insertions, 0 deletions