256 bytes will be enough but not too large for the name of SPDK IO device. Use fixed size string for the name of SPDK IO device and reduce the potential malloc failure. If the length of passed name is longer then 256, it will be cut off without error. Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> Change-Id: I618b82a1d07769df7c775280fbf364cbcfdde403 Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/459721 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Seth Howell <seth.howell5141@gmail.com> Reviewed-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-by: Paul Luse <paul.e.luse@intel.com> |
||
---|---|---|
.. | ||
Makefile | ||
thread.c |