diff options
author | Sheetal Pamecha <sheetal.pamecha08@gmail.com> | 2018-11-19 22:15:25 +0530 |
---|---|---|
committer | Amar Tumballi <amarts@redhat.com> | 2019-06-03 02:59:17 +0000 |
commit | 950726dfc8e3171bef625b563c0c6dbba1ec2928 (patch) | |
tree | 9f29ddeaa3d93984ffcc0f6620779e0ee8418512 /xlators/storage/posix/src/posix.h | |
parent | 6fd8281ac9af58609979f660ece58c2ed1100e72 (diff) |
posix: add storage.reserve-size option
storage.reserve-size option will take size as input
instead of percentage. If set, priority will be given to
storage.reserve-size over storage.reserve. Default value
of this option is 0.
fixes: bz#1651445
Change-Id: I7a7342c68e436e8bf65bd39c567512ee04abbcea
Signed-off-by: Sheetal Pamecha <sheetal.pamecha08@gmail.com>
Diffstat (limited to 'xlators/storage/posix/src/posix.h')
-rw-r--r-- | xlators/storage/posix/src/posix.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xlators/storage/posix/src/posix.h b/xlators/storage/posix/src/posix.h index e807d4a972e..02e7003a57b 100644 --- a/xlators/storage/posix/src/posix.h +++ b/xlators/storage/posix/src/posix.h @@ -224,7 +224,8 @@ struct posix_private { pthread_t health_check; gf_boolean_t health_check_active; - uint32_t disk_reserve; + uint32_t disk_reserve_percent; + uint64_t disk_reserve_size; uint32_t disk_space_full; pthread_t disk_space_check; gf_boolean_t disk_space_check_active; |