CEPH filesystem development
 help / color / mirror / Atom feed
* [PATCH v5 0/2] libceph: reject zero bucket types and clean up type 0 uses
@ 2026-06-05  8:43 Ren Wei
  2026-06-05  8:43 ` [PATCH v5 1/2] libceph: reject zero bucket types in crush_decode Ren Wei
  2026-06-05  8:43 ` [PATCH v5 2/2] libceph: crush: use CRUSH_ITEM_TYPE_DEVICE for leaf device checks Ren Wei
  0 siblings, 2 replies; 4+ messages in thread
From: Ren Wei @ 2026-06-05  8:43 UTC (permalink / raw)
  To: Viacheslav Dubeyko, ceph-devel
  Cc: idryomov, amarkuze, slava, sage, Slava.Dubeyko, yuantan098,
	zcliangcn, bird, ldy3087146292, n05ec

From: Douya Le <ldy3087146292@gmail.com>

This series fixes a CRUSH map decode issue in libceph and keeps the
follow-up type-0-to-constant cleanup in a separate patch.

Patch 1/2 rejects bucket type 0 during CRUSH map decode and defines the
reserved device type in a separate enum.

Patch 2/2 uses that type constant consistently in the CRUSH mapper
paths that identify leaf devices.

Douya Le (2):
  libceph: reject zero bucket types in crush_decode
  libceph: crush: use CRUSH_ITEM_TYPE_DEVICE for leaf device checks

 include/linux/crush/crush.h | 6 +++++-
 net/ceph/crush/mapper.c     | 8 ++++----
 net/ceph/osdmap.c           | 2 ++
 3 files changed, 11 insertions(+), 5 deletions(-)

-- 
2.47.3


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

end of thread, other threads:[~2026-06-05 19:03 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-05  8:43 [PATCH v5 0/2] libceph: reject zero bucket types and clean up type 0 uses Ren Wei
2026-06-05  8:43 ` [PATCH v5 1/2] libceph: reject zero bucket types in crush_decode Ren Wei
2026-06-05 19:03   ` Viacheslav Dubeyko
2026-06-05  8:43 ` [PATCH v5 2/2] libceph: crush: use CRUSH_ITEM_TYPE_DEVICE for leaf device checks Ren Wei

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