linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 0/2] make logical_block_size configurable
@ 2025-09-11  7:31 linan666
  2025-09-11  7:31 ` [PATCH v4 1/2] md: prevent adding disks with larger logical_block_size to active arrays linan666
  2025-09-11  7:31 ` [PATCH v4 2/2] md: allow configuring logical_block_size linan666
  0 siblings, 2 replies; 11+ messages in thread
From: linan666 @ 2025-09-11  7:31 UTC (permalink / raw)
  To: corbet, song, yukuai3, linan122, xni, hare
  Cc: martin.petersen, bvanassche, filipe.c.maia, linux-doc,
	linux-kernel, linux-raid, linan666, yangerkun, yi.zhang

From: Li Nan <linan122@huawei.com>

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] 11+ messages in thread

end of thread, other threads:[~2025-09-16  6:33 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-09-11  7:31 [PATCH v4 0/2] make logical_block_size configurable linan666
2025-09-11  7:31 ` [PATCH v4 1/2] md: prevent adding disks with larger logical_block_size to active arrays linan666
2025-09-12  3:18   ` Xiao Ni
2025-09-12  9:20     ` Li Nan
2025-09-11  7:31 ` [PATCH v4 2/2] md: allow configuring logical_block_size linan666
2025-09-11  8:05   ` Paul Menzel
2025-09-12  9:27     ` Li Nan
2025-09-15  0:33   ` Xiao Ni
2025-09-15  2:15     ` Li Nan
2025-09-15  8:50       ` Xiao Ni
2025-09-16  6:33         ` Li Nan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).