public inbox for linux-block@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/4] ublk: rework partition handling
@ 2026-02-23 12:15 Alexander Atanasov
  2026-02-23 12:15 ` [PATCH 1/4] ublk: cleanup flag handling and fix UBLK_F_NO_AUTO_PART_SCAN Alexander Atanasov
                   ` (3 more replies)
  0 siblings, 4 replies; 16+ messages in thread
From: Alexander Atanasov @ 2026-02-23 12:15 UTC (permalink / raw)
  To: Ming Lei, Jens Axboe; +Cc: linux-block, Alexander Atanasov

Rework how partitions are handled for ublk devices.

Disable partitions on unprivileged devices completely -
GD_SUPPRESS_PART_SCAN is used but partitions still can
be created by userspace scan.
Use GENHD_FL_NO_PART to truly disable partitions on device.

For privileged device partitions are optional - disabled
by default.
They can be enabled with UBLK_F_PARTITIONS flag.
Auto partition scan is performed only when explicitly requested
by user.

Update related tests and documentation.

Alexander Atanasov (4):
  ublk: cleanup flag handling and fix UBLK_F_NO_AUTO_PART_SCAN
  selftests: ublk: rework partitions tests for new flags
  ublk: document partition flags, kublk and update external links
  selftests: ublk: cleanup kublk.h

 Documentation/block/ublk.rst                  | 22 ++++++++++--
 drivers/block/ublk_drv.c                      | 34 +++++++++++--------
 include/uapi/linux/ublk_cmd.h                 |  7 ++--
 tools/testing/selftests/ublk/kublk.c          | 18 ++++++----
 tools/testing/selftests/ublk/kublk.h          |  1 -
 .../selftests/ublk/test_integrity_01.sh       |  9 ++---
 tools/testing/selftests/ublk/test_part_01.sh  | 14 ++++----
 tools/testing/selftests/ublk/test_part_02.sh  |  6 ++--
 8 files changed, 71 insertions(+), 40 deletions(-)


base-commit: 72f4d6fca699a1e35b39c5e5dacac2926d254135
-- 
2.43.0


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

end of thread, other threads:[~2026-02-24 11:05 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-23 12:15 [PATCH 0/4] ublk: rework partition handling Alexander Atanasov
2026-02-23 12:15 ` [PATCH 1/4] ublk: cleanup flag handling and fix UBLK_F_NO_AUTO_PART_SCAN Alexander Atanasov
2026-02-23 12:29   ` Hannes Reinecke
2026-02-23 15:59   ` Caleb Sander Mateos
2026-02-23 16:23     ` Alexander Atanasov
2026-02-23 16:42       ` Caleb Sander Mateos
2026-02-23 17:19         ` Alexander Atanasov
2026-02-24  9:31     ` Ming Lei
2026-02-24  9:34   ` Ming Lei
     [not found]     ` <182C75BB-3CBC-4627-9F15-AE8FE675260C@zazolabs.com>
2026-02-24 11:04       ` Ming Lei
2026-02-23 12:15 ` [PATCH 2/4] selftests: ublk: rework partitions tests for new flags Alexander Atanasov
2026-02-23 12:29   ` Hannes Reinecke
2026-02-23 12:15 ` [PATCH 3/4] ublk: document partition flags, kublk and update external links Alexander Atanasov
2026-02-23 12:30   ` Hannes Reinecke
2026-02-23 12:15 ` [PATCH 4/4] selftests: ublk: cleanup kublk.h Alexander Atanasov
2026-02-23 12:30   ` Hannes Reinecke

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