Skip to content

Commit

Permalink
Version 6.2.8.7
Browse files Browse the repository at this point in the history
- Fixed bug in read-only rebuild when the logical size of the volume is an
  exact multiple of 821 4K blocks.
  • Loading branch information
corwin committed Feb 14, 2023
1 parent d6ba008 commit c3fab42
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
7 changes: 4 additions & 3 deletions kvdo.spec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
%define spec_release 1
%define kmod_name kvdo
%define kmod_driver_version 6.2.8.6
%define kmod_driver_version 6.2.8.7
%define kmod_rpm_release %{spec_release}
%define kmod_kernel_version 3.10.0-693.el7

Expand Down Expand Up @@ -96,5 +96,6 @@ rm -rf $RPM_BUILD_ROOT
%{_usr}/src/%{kmod_name}-%{version}

%changelog
* Tue Dec 13 2022 - Red Hat VDO Team <[email protected]> - 6.2.8.6-1
- Added a check for 0 length table line arguments.
* Mon Feb 13 2023 - Red Hat VDO Team <[email protected]> - 6.2.8.7-1
- Fixed bug in read-only rebuild when the logical size of the volume is an
exact multiple of 821 4K blocks.
2 changes: 1 addition & 1 deletion vdo/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VDO_VERSION = 6.2.8.6
VDO_VERSION = 6.2.8.7

VDO_VERSION_MAJOR = $(word 1,$(subst ., ,$(VDO_VERSION)))
VDO_VERSION_MINOR = $(word 2,$(subst ., ,$(VDO_VERSION)))
Expand Down
5 changes: 4 additions & 1 deletion vdo/base/referenceCountRebuild.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301, USA.
*
* $Id: //eng/vdo-releases/aluminum/src/c++/vdo/base/referenceCountRebuild.c#6 $
* $Id: //eng/vdo-releases/aluminum/src/c++/vdo/base/referenceCountRebuild.c#7 $
*/

#include "referenceCountRebuild.h"
Expand Down Expand Up @@ -417,6 +417,9 @@ static void rebuildFromLeaves(VDOCompletion *completion)
.slot = rebuild->blockMap->entryCount % BLOCK_MAP_ENTRIES_PER_PAGE,
.pbn = findBlockMapPagePBN(rebuild->blockMap, rebuild->leafPages - 1),
};
if (rebuild->lastSlot.slot == 0) {
rebuild->lastSlot.slot = BLOCK_MAP_ENTRIES_PER_PAGE;
}

// Prevent any page from being processed until all pages have been launched.
rebuild->launching = true;
Expand Down

0 comments on commit c3fab42

Please sign in to comment.