public inbox for pbs-devel@lists.proxmox.com
 help / color / mirror / Atom feed
* [PATCH v1 proxmox-backup 0/3] improve handling of bad S3 chunks during GC
@ 2026-07-13 13:22 Robert Obkircher
  2026-07-13 13:22 ` [PATCH v1 proxmox-backup 1/3] datastore: fix local path for .i.bad chunk files during S3 GC Robert Obkircher
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Robert Obkircher @ 2026-07-13 13:22 UTC (permalink / raw)
  To: pbs-devel

Fix an issue where the local path of .i.bad files was computed
incorrectly, and refactor the related code a bit.

I discovered this issue while grepping for "unsafe" to see if it would
make sense to (explicitly) depend on the zerocopy crate for the index
file readers. The removed unsafe statement in the first patch looked
suspicious because it could have been out-of-bounds if to_string_lossy
wasn't guaranteed to be called on an utf8 OsStr.

Robert Obkircher (3):
  datastore: fix local path for .i.bad chunk files during S3 GC
  datastore: check that .i.bad files from S3 actually match that pattern
  datastore: introduce helper function to parse digest from S3ObjectKey

 pbs-datastore/src/chunk_store.rs | 21 +++++++++++------
 pbs-datastore/src/datastore.rs   | 39 ++++++++------------------------
 pbs-datastore/src/s3.rs          | 39 +++++++++++++++++++++++++++++---
 3 files changed, 60 insertions(+), 39 deletions(-)

-- 
2.47.3





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

end of thread, other threads:[~2026-07-13 13:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-13 13:22 [PATCH v1 proxmox-backup 0/3] improve handling of bad S3 chunks during GC Robert Obkircher
2026-07-13 13:22 ` [PATCH v1 proxmox-backup 1/3] datastore: fix local path for .i.bad chunk files during S3 GC Robert Obkircher
2026-07-13 13:22 ` [PATCH v1 proxmox-backup 2/3] datastore: check that .i.bad files from S3 actually match that pattern Robert Obkircher
2026-07-13 13:22 ` [PATCH v1 proxmox-backup 3/3] datastore: introduce helper function to parse digest from S3ObjectKey Robert Obkircher

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Service provided by Proxmox Server Solutions GmbH | Privacy | Legal