protocol/server: define the max number of inodes in lru list as a number

* The max number of inodes in the lru list of the inode table was being defined
  in terms of memory units (GF_UNIT_MB) instead of number. And the description
  of the option was also referring to it in memory units instead of number.

Change-Id: I48f07e7d2826406697eb2a13714ab22feae81d89
BUG: 1266883
Signed-off-by: Raghavendra Bhat <raghavendra@redhat.com>
Reviewed-on: http://review.gluster.org/12242
Tested-by: NetBSD Build System <jenkins@build.gluster.org>
Reviewed-by: Niels de Vos <ndevos@redhat.com>
Tested-by: Gluster Build System <jenkins@build.gluster.com>
This commit is contained in:
Raghavendra Bhat 2015-09-28 16:47:01 +05:30 committed by Niels de Vos
parent bd71446b25
commit 0c02fefaf7

View File

@ -1314,10 +1314,10 @@ struct volume_options options[] = {
{ .key = {"inode-lru-limit"},
.type = GF_OPTION_TYPE_INT,
.min = 0,
.max = (1 * GF_UNIT_MB),
.max = 1048576,
.default_value = "16384",
.description = "Specifies the maximum megabytes of memory to be "
"used in the inode cache."
.description = "Specifies the limit on the number of inodes "
"in the lru list of the inode cache."
},
{ .key = {"verify-volfile-checksum"},
.type = GF_OPTION_TYPE_BOOL