lmu.lum_stripe_count = stripe_count;
lmu.lum_hash_type = stripe_pattern;
if (pool_name != NULL) {
- if (strlen(pool_name) >= LOV_MAXPOOLNAME) {
+ if (strlen(pool_name) > LOV_MAXPOOLNAME) {
llapi_err_noerrno(LLAPI_MSG_ERROR,
"error LL_IOC_LMV_SETSTRIPE '%s' : too large"
"pool name: %s", name, pool_name);