You have been subscribed to a public bug:

Description:
The badblocks routines we used from md have a bug where if a new range being 
added overlaps with multiple distinct ranges, it only merges with the first one.

Consider the following operations:

badblocks_set(bb, 32, 1);
badblocks_set(bb, 34, 1);
badblocks_set(bb, 36, 1);

badblocks_show will now correctly report:
32 1
34 1
36 1

Now if I do:
badblocks_set(bb, 32, 12);

Ideally, this should collapse all ranges into a single (32, 12).. But
looks like badblocks_set only merges one set of adjacent mergeable
ranges, and then returns, resulting in:

32 3
36 1

Now if I add the same (32, 12) range again, I get:

32 5

as one more set is merged. And finally after adding (32, 12) one final
time, I get the expected

32 12.

Target Kernel:TBD
Target Release:19.04

** Affects: intel
     Importance: Medium
         Status: Triaged

** Affects: linux (Ubuntu)
     Importance: Undecided
         Status: New


** Tags: intel-kernel-19.04 kernel
-- 
[Bug]Crystal Ridge - 4.15: fix badblocks routines not merging more than one 
range at a time
https://bugs.launchpad.net/bugs/1744634
You received this bug notification because you are a member of Kernel Packages, 
which is subscribed to linux in Ubuntu.

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to