Skip to content

loop: support different blocksizes

Hannes Reinecke linux-fsdevel lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2loop: Display correct physical blocksizedrivers/block/loop.c+7 -50 replies
2/2loop: Add module parameter 'lbs' to set logical blocksizedrivers/block/loop.c drivers/block/loop.h+43 -130 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] loop: support different blocksizes

Hi all,

the loop device already contains rudimentary support for blocksizes other than 512 bytes, so this patchset enables the loop device to use a different blocksize.
The new module parameter 'lbs' specify the blocksize to use, or '0' to use the blocksize of the underlying device (which defaults to PAGE_SIZE for files).
Eventually it might be useful to select the blocksize per device, but the interface for that will need to be discussed.

Hannes Reinecke (2):
loop: Display correct physical blocksize
loop: Add module parameter 'lbs' to set logical blocksize

 drivers/block/loop.c | 65 ++++++++++++++++++++++++++++++++++++++--------------
 drivers/block/loop.h |  1 +
 2 files changed, 49 insertions(+), 17 deletions(-)
Signature · 1 line
1.7.12.4