diff options
author | Krishnan Parthasarathi <kparthas@redhat.com> | 2013-08-10 20:03:00 +0530 |
---|---|---|
committer | Krishnan Parthasarathi <kparthas@redhat.com> | 2013-08-12 00:48:15 +0530 |
commit | 232d7baf3ddd6b92485ab42f92d2f1eeb728d3e5 (patch) | |
tree | ec326ef2a18986ba024f4d0961d49b4a48764572 | |
parent | 6490660a439df29b15d9c0d16d1e5a3174d0017b (diff) |
quota: saner defaults, min and max values for timeouts
Also changed default soft-limit percentage to 80% of
configured quota limit.
Change-Id: Ia07b569216189a6e3bedb5cdbf8ffeb9f7739444
Signed-off-by: Krishnan Parthasarathi <kparthas@redhat.com>
-rw-r--r-- | xlators/features/quota/src/quota.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xlators/features/quota/src/quota.c b/xlators/features/quota/src/quota.c index 5f7c67ce..b96a1129 100644 --- a/xlators/features/quota/src/quota.c +++ b/xlators/features/quota/src/quota.c @@ -3540,15 +3540,15 @@ struct volume_options options[] = { }, {.key = {"default-soft-limit"}, .type = GF_OPTION_TYPE_PERCENT, - .default_value = "90%", + .default_value = "80%", .min = 0, .max = LONG_MAX, }, {.key = {"soft-timeout"}, .type = GF_OPTION_TYPE_INT, .min = 0, - .max = 60, - .default_value = "0", + .max = 1800, + .default_value = "60", .description = "quota caches the directory sizes on client. " "soft-timeout indicates the timeout for the validity of" " cache before soft-limit has been crossed." @@ -3557,7 +3557,7 @@ struct volume_options options[] = { .type = GF_OPTION_TYPE_INT, .min = 0, .max = 60, - .default_value = "0", + .default_value = "5", .description = "quota caches the directory sizes on client. " "hard-timeout indicates the timeout for the validity of" " cache after soft-limit has been crossed." |