mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v5 0/2] make logical block size configurable
@ 2025-09-18 11:57 linan666
  2025-09-18 11:57 ` [PATCH v5 1/2] md: prevent adding disks with larger logical_block_size to active arrays linan666
  2025-09-18 11:57 ` [PATCH v5 2/2] md: allow configuring logical block size linan666
  0 siblings, 2 replies; 10+ messages in thread
From: linan666 @ 2025-09-18 11:57 UTC (permalink / raw)
  To: corbet, song, yukuai3, linan122, hare, xni
  Cc: linux-doc, linux-kernel, linux-raid, martin.petersen, linan666,
	yangerkun, yi.zhang

From: Li Nan <linan122@huawei.com>

v5: in patch2:
    Fix typo. Add reproducer in log.

v4:
 patch 1: add fix tag.
 patch 2:
 - add documentation for sysfs.
 - only support metadata format 1.x.
 - do not call md_update_sb when writing sysfs. mddev->pers is NULL here.
 - return directly before hold lock in lbs_store.

v3:
 - logical_block_size must not exceed PAGE_SIZE for bio device.
 - Assign lim to mddev rather than to gendisk in mddev_stack_rdev_limits().
 - Remove the patch that modifies the return value.

v2: No new exported interfaces are introduced.

Li Nan (2):
  md: prevent adding disks with larger logical_block_size to active
    arrays
  md: allow configuring logical block size

 Documentation/admin-guide/md.rst |  7 +++
 drivers/md/md.h                  |  1 +
 include/uapi/linux/raid/md_p.h   |  3 +-
 drivers/md/md-linear.c           |  1 +
 drivers/md/md.c                  | 82 ++++++++++++++++++++++++++++++++
 drivers/md/raid0.c               |  1 +
 drivers/md/raid1.c               |  1 +
 drivers/md/raid10.c              |  1 +
 drivers/md/raid5.c               |  1 +
 9 files changed, 97 insertions(+), 1 deletion(-)

-- 
2.39.2


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2025-09-26  7:22 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-09-18 11:57 [PATCH v5 0/2] make logical block size configurable linan666
2025-09-18 11:57 ` [PATCH v5 1/2] md: prevent adding disks with larger logical_block_size to active arrays linan666
2025-09-20  9:55   ` Yu Kuai
2025-09-18 11:57 ` [PATCH v5 2/2] md: allow configuring logical block size linan666
2025-09-23 11:36   ` Xiao Ni
2025-09-23 13:36     ` Li Nan
2025-09-23 14:06       ` Xiao Ni
2025-09-25  8:34         ` Li Nan
2025-09-26  7:22           ` Li Nan
2025-09-25  8:38         ` Li Nan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®