Project

General

Profile

Actions

Feature #79804

open
MW MW

osd: Sparse Reads and logical allocation preservation for EC pools

Feature #79804: osd: Sparse Reads and logical allocation preservation for EC pools

Added by Matty Williams 3 months ago. Updated 6 days ago.

Status:
Fix Under Review
Priority:
Normal
Category:
-
Target version:
-
Due date:
% Done:

0%

Source:
Backport:
Reviewed:
Affected Versions:
Component(RADOS):
Pull request ID:
Tags (freeform):
Merge Commit:
Fixed In:
Released In:
Upkeep Timestamp:

Description

Design Doc: https://github.com/ceph/ceph/pull/69313

EC pools currently have three related limitations that make them unsuitable for encrypted workloads (RBD with LUKS, CephFS with fscrypt):

  • SPARSE_READ is unreliable — all regions are reported as allocated regardless of actual physical allocation state.
  • MAPEXT is not supported — the operation returns -EOPNOTSUPP on EC pools entirely.
  • Allocation state is not preserved across recovery — when a shard is reconstructed from parity, the OSD cannot distinguish an explicitly-written zero block from a hole. Zero blocks written by the client may be silently deallocated after recovery.

The third point is a hard blocker for encryption: LUKS ciphertext can legitimately encrypt to all-zero bytes. After a recovery event, those regions would be reported as holes, corrupting the encrypted volume from the client's perspective.

This tracker covers the work to fix all three issues, enabling EC pools to be used reliably as data pools for encrypted RBD images and CephFS volumes.


Related issues 2 (2 open — 0 closed)

Related to RADOS - Enhancement #83648: osd/ec: consolidate ECSubRead/ECSubReadReply into per-object mapsFix Under ReviewMatty Williams

Actions
Related to Ceph - Enhancement #83649: osd: Return sparse-read extent map separately from read data in MOSDOpReply so the data section is alignedFix Under ReviewMatty Williams

Actions

MW Updated by Matty Williams 6 days ago Actions #1

  • Related to Enhancement #83648: osd/ec: consolidate ECSubRead/ECSubReadReply into per-object maps added

MW Updated by Matty Williams 6 days ago Actions #2

  • Related to Enhancement #83649: osd: Return sparse-read extent map separately from read data in MOSDOpReply so the data section is aligned added

MW Updated by Matty Williams 6 days ago Actions #3

  • Status changed from In Progress to Fix Under Review
  • Pull request ID set to 71288
Actions

Also available in: PDF Atom