Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

query whether hash / defrag transfer item content

オープン
#234 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
35/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
python

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
Python
スター
26
フォーク
9
平均マージ
2時間 22分
マージ済み PR(30日)
12

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

borgbackup/borgstore のほかの issue

borgbackup/borgstore の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。