ceph: fix missing snapshot context in write operations
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 8 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | ceph: fix snapshot context missing in ceph_zero_partial_objectfs/ | +16 | 3 replies | |
| 2/2 | ceph: fix snapshot context missing in ceph_uninline_datafs/ | +22 | 4 replies |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Viacheslav Dubeyko |
|---|---|
| 1/2 | R-b T-b |
| 2/2 | R-b T-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/2] ceph: fix missing snapshot context in write operations
This series addresses two instances where Ceph filesystem operations were missing proper snapshot context handling, which could lead to data inconsistencies in snapshots.
The issue occurs in two scenarios:
1. ceph_zero_partial_object() during fallocate punch hole operations
2. ceph_uninline_data() when converting inline data to regular objects
Both functions were passing NULL snapshot context to OSD write operations instead of acquiring the appropriate context. This could result in snapshot data corruption where subsequent reads from snapshots
would return modified data instead of the original snapshot content.
The fix ensures that proper snapshot context is acquired and passed to all OSD write operations in these code paths.
ethanwu (2):
ceph: fix snapshot context missing in ceph_zero_partial_object
ceph: fix snapshot context missing in ceph_uninline_data
fs/ceph/addr.c | 24 ++++++++++++++++++++++-- fs/ceph/file.c | 17 ++++++++++++++++- 2 files changed, 38 insertions(+), 3 deletions(-)
Signature · 4 lines
2.43.0 Disclaimer: The contents of this e-mail message and any attachments are confidential and are intended solely for addressee. The information may also be legally privileged. This transmission is sent in trust, for the sole purpose of delivery to the intended recipient. If you have received this transmission in error, any use, reproduction or dissemination of this transmission is strictly prohibited. If you are not the intended recipient, please immediately notify the sender by reply e-mail or phone and delete this message and its attachments, if any.