Test malloc result when allocation size is tunable
authorTomohiro Kusumi <tkusumi@tuxera.com>
Tue, 28 Mar 2017 20:02:51 +0000 (23:02 +0300)
committerJens Axboe <axboe@fb.com>
Tue, 28 Mar 2017 21:14:20 +0000 (15:14 -0600)
commit84af30a1ed4db246621813e7fc3a41e21cef52bb
tree8e6a64816f2869429d670b777a2539048010df78
parente5a43605ba1dc7a0843eaafcc3f9090639bd9169
Test malloc result when allocation size is tunable

The allocation size td->o.max_bs[DDIR_XXX] can be specified by user,
so test the result although it can be over committed on some platforms.
In theory allocation size could be as large as maximum of uint.

Signed-off-by: Tomohiro Kusumi <tkusumi@tuxera.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
filesetup.c