Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

query whether hash / defrag transfer item content

Aperta
#234 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
5/5
Tempo stimato
Più di una settimana
Idoneità per principianti
35/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
python

Direzione di ricerca

Start at the Store.hash and Store.defrag operations and trace their implementations across the posixfs, rest, sftp, s3, and rclone backends. Define and test the requested transfer query against the behavior in the table, including the algorithm-dependent sftp check-file probing; done means callers can determine whether item content will transfer.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

borg compact copies packs with Store.defrag. borgbackup/borg#10410 needs a Store.hash check of each source pack before the copy. Whether that check is cheap depends on the backend, and the caller cannot tell which case applies.

"Transfer" below means the item content goes over the network between the storage and the borgstore client.

backend hash defrag
posixfs no transfer (local file read) no transfer
rest no transfer (computed by borg serve --rest) no transfer
sftp no transfer if the server supports the check-file extension (OpenSSH does not; never for blake3), otherwise downloads the item downloads the source ranges, uploads the target
s3, rclone downloads the item downloads the source ranges, uploads the target

Request: a way to ask the store whether an operation transfers item content, e.g.

Store.transfers_content(op: str, algorithm: str | None = None) -> bool  # op: "hash", "defrag"

algorithm is needed because sftp check-file does not support blake3. For sftp hash, check_file_supported is only known after the first check-file attempt, so the query has to probe or return True until it is confirmed.

Lingua principale
Python
Stelle
26
Fork
9
Merge medio
2h 22m
PR unite (30g)
12

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di borgbackup/borgstore

Tutte le issue di borgbackup/borgstore

Issue simili

Altre issue su Python

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.