支持预分配文件
Open
Nobody has claimed this yet.
- Dominant language
- Dart
- Stars
- 26.4k
- Forks
- 1.7k
- Avg merge
- 1d 6h
- Merged PRs (30d)
- 50
Description
Description(required)
希望可以和aria2一样,设置里面可以设置预分配文件的方式。
https://github.com/GopeedLab/gopeed/blob/8b3b5d4394df67dad87bccfb335843308d95df86/internal/controller/controller.go#L42
使用fallocate
cmd := exec.Command("fallocate", "-l", “1G”,name)
使用truncate
cmd := exec.Command("truncate", "-s", “1G”,name)
App Version(required)
OS Version(required)
linux
Snapshots
Log
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with internal/controller/controller.go at the referenced line and inspect how download settings are represented and applied. Compare the requested fallocate and truncate approaches, then determine the setting behavior and Linux validation needed for selectable file preallocation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, linux
- Domain
- backend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 30/100