preallocate status shouldn't be taken into account when space
usage is calculated, otherwise transient errors may cause
incorrect space utilization and unexpected mirrors to that
pool.
Signed-off-by: Alex Zhuravlev <bzzz@whamcloud.com>
Change-Id: I7cefd3bc7366bd5b08e1e08cec2eaa4d91e16a90
Reviewed-on: https://review.whamcloud.com/46901
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: John L. Hammond <jhammond@whamcloud.com>
pthread_rwlock_rdlock(&pl->pl_lock);
for (i = 0; i < pl->pl_ostnr; i++) {
- __u64 ost_used_kb, ost_total_kb, active, status;
+ __u64 ost_used_kb, ost_total_kb, active;
int ostidx = pl->pl_osts[i];
active = lamigo_read_osp_param(ostidx, "active");
- status = lamigo_read_osp_param(ostidx, "prealloc_status");
- if (!active || status)
+ if (!active)
continue;
ost_total_kb = lamigo_read_osp_param(ostidx, "kbytestotal");