From: nathan Date: Fri, 10 Oct 2008 19:08:52 +0000 (+0000) Subject: b=17299 X-Git-Tag: v1_7_120~1^72~1 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=8c405faa6fa508c66e09018756746931b8fe37a7;p=fs%2Flustre-release.git b=17299 i=adilger i=nathan rename MAXPOOLAME with LOV_MAXPOOLNAME --- diff --git a/lustre/utils/lfs.c b/lustre/utils/lfs.c index 11e27e7..5fffc53 100644 --- a/lustre/utils/lfs.c +++ b/lustre/utils/lfs.c @@ -608,17 +608,17 @@ static int lfs_find(int argc, char **argv) break; case FIND_POOL_OPT: new_fashion = 1; - if (strlen(optarg) > MAXPOOLNAME) { + if (strlen(optarg) > LOV_MAXPOOLNAME) { fprintf(stderr, "Pool name %s is too long" " (max is %d)\n", optarg, - MAXPOOLNAME); + LOV_MAXPOOLNAME); return -1; } /* we do check for empty pool because empty pool * is used to find V1 lov attributes */ - strncpy(param.poolname, optarg, MAXPOOLNAME); - param.poolname[MAXPOOLNAME] = '\0'; + strncpy(param.poolname, optarg, LOV_MAXPOOLNAME); + param.poolname[LOV_MAXPOOLNAME] = '\0'; param.exclude_pool = !!neg_opt; param.check_pool = 1; break;