Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

支持预分配文件 #583

Open
xixky opened this issue Jun 18, 2024 · 0 comments
Open

支持预分配文件 #583

xixky opened this issue Jun 18, 2024 · 0 comments

Comments

@xixky
Copy link

xixky commented Jun 18, 2024

Description(required)

希望可以和aria2一样,设置里面可以设置预分配文件的方式。

err = os.Truncate(name, size)

使用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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant