Skip to content

brd: Allow to change block sizes

Hannes Reinecke linux-block linux-fsdevel linux-mm llvm oe-kbuild-all 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 19 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5brd: convert to foliosdrivers/block/brd.c+85 -867 replies
2/5brd: abstract page_size conventionsdrivers/block/brd.c+21 -90 replies
3/5brd: make sector size configurabledrivers/block/brd.c+19 -114 replies
4/5brd: limit maximal block size to 32Mdrivers/block/brd.c+8 -84 replies
5/5brd: make logical sector size configurabledrivers/block/brd.c+23 -143 replies

Reviews trailers per patch

1 of 5 patches has a Reviewed-by or Acked-by.

PatchLuis Chamberlain
1/5R-b
2/5
3/5
4/5
5/5

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/5] brd: Allow to change block sizes

Hi all,

meat to the bone: with this patchset one can change the physical and logical block size of the 'brd' ramdisk driver.
Default is 512 (for both); one can easily increase the physical block size to 16k and the logical block size to 4k.
Increasing the logcial block size beyond 4k gives some 'interesting' crashes.
It should also be possible to use the resulting ram disk as a backend for nvme target, thereby exercising the NVMe stack for larger block sizes, too.

Happy hacking!

Hannes Reinecke (5):
brd: convert to folios
brd: abstract page_size conventions
brd: make sector size configurable
brd: limit maximal block size to 32M
brd: make logical sector size configurable

 drivers/block/brd.c | 244 ++++++++++++++++++++++++--------------------
 1 file changed, 136 insertions(+), 108 deletions(-)
Signature · 1 line
2.35.3