Skip to content

sprandom: relax power of 2 block size requirement#2082

Open
vincentkfu wants to merge 1 commit intoaxboe:masterfrom
vincentkfu:spr_po2
Open

sprandom: relax power of 2 block size requirement#2082
vincentkfu wants to merge 1 commit intoaxboe:masterfrom
vincentkfu:spr_po2

Conversation

@vincentkfu
Copy link
Copy Markdown
Collaborator

There is no a priori reason why the SPRandom approach cannot work with block sizes that are not a power of 2. Lift the constraint that allows only power of 2 block sizes when sprandom is enabled.

This allows sprandom to be used when devices are formatted in extended LBA (DIF) mode with 520- or 4160-byte sectors.

@steven-sprouse-sndk
@tomas-winkler-sndk

There is no a priori reason why the SPRandom approach cannot work with
block sizes that are not a power of 2. Lift the constraint that allows
only power of 2 block sizes when sprandom is enabled.

This allows sprandom to be used when devices are formatted in extended
LBA (DIF) mode with 520- or 4160-byte sectors.

Signed-off-by: Vincent Fu <vincent.fu@samsung.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant