代码拉取完成,页面将自动刷新
同步操作将从 src-openEuler/thin-provisioning-tools 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
From 529a7cf3f5d5780d5e44c8508d2d42903672f7e8 Mon Sep 17 00:00:00 2001
From: root <root@localhost.localdomain>
Date: Tue, 9 Apr 2019 21:36:22 +0800
Subject: [PATCH 4/4] [space-map-disk] fix the search range (#117)
---
persistent-data/space-maps/disk.cc | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/persistent-data/space-maps/disk.cc b/persistent-data/space-maps/disk.cc
index ce6a42c..d8db76f 100644
--- a/persistent-data/space-maps/disk.cc
+++ b/persistent-data/space-maps/disk.cc
@@ -390,7 +390,8 @@ namespace {
bitmap bm(tm_, ie, bitmap_validator_);
unsigned bit_begin = (index == begin_index) ? (begin % ENTRIES_PER_BLOCK) : 0;
- unsigned bit_end = (index == end_index - 1) ? (end % ENTRIES_PER_BLOCK) : ENTRIES_PER_BLOCK;
+ unsigned bit_end = (index == end_index - 1) ?
+ (end - ENTRIES_PER_BLOCK * index) : ENTRIES_PER_BLOCK;
boost::optional<unsigned> maybe_b = bm.find_free(bit_begin, bit_end);
if (maybe_b) {
--
2.19.1
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。