Whamcloud - gitweb
LU-5054 llite: enforce pool name length limit
[fs/lustre-release.git] / lustre / utils / liblustreapi.c
index 9225821..d97ff03 100644 (file)
@@ -868,7 +868,7 @@ int llapi_dir_create_pool(const char *name, int mode, int stripe_offset,
        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);