Skip to content

Commit

Permalink
Version 8.2.1.6
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 e2a5ebb commit c9bd224
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 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 8.2.1.3
%define kmod_driver_version 8.2.1.6
%define kmod_rpm_release %{spec_release}
%define kmod_kernel_version 3.10.0-693.el7

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

%changelog
* Thu Dec 08 2022 - Red Hat VDO Team <[email protected]> - 8.2.1.3-1
* Wed Feb 08 2023 - Red Hat VDO Team <[email protected]> - 8.2.1.6-1
- See https://github.com/dm-vdo/kvdo.git
2 changes: 1 addition & 1 deletion vdo/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
VDO_VERSION = 8.2.1.3
VDO_VERSION = 8.2.1.6

SOURCES = $(notdir $(wildcard $(src)/*.c))
OBJECTS = $(SOURCES:%.c=%.o)
Expand Down
5 changes: 4 additions & 1 deletion vdo/reference-count-rebuild.c
Original file line number Diff line number Diff line change
Expand Up @@ -411,12 +411,15 @@ static void rebuild_from_leaves(struct vdo_completion *completion)
* The PBN calculation doesn't work until the tree pages have been
* loaded, so we can't set this value at the start of rebuild.
*/
rebuild->last_slot = (struct block_map_slot){
rebuild->last_slot = (struct block_map_slot) {
.slot = rebuild->block_map->entry_count
% VDO_BLOCK_MAP_ENTRIES_PER_PAGE,
.pbn = vdo_find_block_map_page_pbn(rebuild->block_map,
rebuild->leaf_pages - 1),
};
if (rebuild->last_slot.slot == 0) {
rebuild->last_slot.slot = VDO_BLOCK_MAP_ENTRIES_PER_PAGE;
}

/*
* Prevent any page from being processed until all pages have been
Expand Down

0 comments on commit c9bd224

Please sign in to comment.