diff options
author | Sheetal Pamecha <spamecha@redhat.com> | 2019-06-19 15:08:58 +0530 |
---|---|---|
committer | Amar Tumballi <amarts@redhat.com> | 2019-06-26 14:07:48 +0000 |
commit | 5cbc87d8b8f1287e81c38b793b8d13b057208c62 (patch) | |
tree | ae6599a14a1ae78367bfcbc89faec695b5442a97 /xlators/storage/posix/src/posix.h | |
parent | 1716a907da1a835b658740f1325033d7ddd44952 (diff) |
posix: modify storage.reserve option to take size and percent
* reverting changes made in
https://review.gluster.org/#/c/glusterfs/+/21686/
* Now storage.reserve can take value in percent or bytes
fixes: bz#1651445
Change-Id: Id4826210ec27991c55b17d1fecd90356bff3e036
Signed-off-by: Sheetal Pamecha <spamecha@redhat.com>
Diffstat (limited to 'xlators/storage/posix/src/posix.h')
-rw-r--r-- | xlators/storage/posix/src/posix.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xlators/storage/posix/src/posix.h b/xlators/storage/posix/src/posix.h index da590b53e1b..963daf3f148 100644 --- a/xlators/storage/posix/src/posix.h +++ b/xlators/storage/posix/src/posix.h @@ -222,8 +222,8 @@ struct posix_private { pthread_t health_check; gf_boolean_t health_check_active; - uint32_t disk_reserve_percent; - uint64_t disk_reserve_size; + double disk_reserve; + char disk_unit; uint32_t disk_space_full; pthread_t disk_space_check; gf_boolean_t disk_space_check_active; |