Compact: check free space before starting

オープン 初心者向け
#80 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

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

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

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
78/100
issue の種類
機能追加
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
electron, node.js, typescript
領域
backend, desktop

調査の方向性

Compact の実装と、qemu-img info から actualBytes を読み取るコードを見つけてください。これらのエントリーポイントは issue に記載されていません。一時ディスクファイルとその配置先ドライブの決定方法を確認し、qemu-img convert の開始前に Node の fs.statfs で空き容量を確認してください。空き容量が不足している場合に、要求されたドライブとサイズの詳細を含むエラーが直ちに報告され、十分な空き容量がある場合には圧縮を続行できれば完了です。

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

説明

backend enhancement

Compact (#74) writes a full new copy of the used part of the disk next to the old one before swapping. On a nearly full drive, qemu-img convert runs for minutes and then fails with a write error, and only then is the temp file cleaned up.

The size we need is known up front (actualBytes from qemu-img info). Check the free space on the disk's drive first and refuse right away with "Compacting needs about X GB free on D:, there's Y GB".

Node has fs.statfs for the free space.

主要言語
TypeScript
スター
3
フォーク
0
平均マージ
2分
マージ済み PR(30日)
35

環境構築

はじめの一歩

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

A21-devs/Virtual-Machine-Manager のほかの issue

A21-devs/Virtual-Machine-Manager の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

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

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