Whamcloud - gitweb
b=17299
authornathan <nathan>
Fri, 10 Oct 2008 19:08:52 +0000 (19:08 +0000)
committernathan <nathan>
Fri, 10 Oct 2008 19:08:52 +0000 (19:08 +0000)
i=adilger
i=nathan
rename MAXPOOLAME with LOV_MAXPOOLNAME

lustre/utils/lfs.c

index 11e27e7..5fffc53 100644 (file)
@@ -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;