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

cmd/utils: don't check free disk space in dev mode #27281

Merged
merged 1 commit into from
May 19, 2023
Merged

cmd/utils: don't check free disk space in dev mode #27281

merged 1 commit into from
May 19, 2023

Conversation

islishude
Copy link
Contributor

data dir is empty when using dev mode.

$ ./build/bin/geth --dev
WARN [05-16|21:41:40.685] Failed to get free disk space            path= err="failed to call Statfs: no such file or directory"

Copy link
Contributor

@jwasinger jwasinger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In my opinion, it would be slightly better to do this check when determining if monitorFreeDiskSpace should be invoked.

Copy link
Contributor

@holiman holiman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By merging the only functional difference will be that the warning is not printed. But sure, why not, I guess.

As for whether to do it within monitorFreeDiskSpace or outside, in cmd/utils/cmd.go before calling go monitorFreeDiskSpace(..., I don't really have any opinion.

@rjl493456442
Copy link
Member

I think both approaches are fine for me, either check in monitorFreeDiskSpace or before monitorFreeDiskSpace.

@holiman holiman merged commit 3223950 into ethereum:master May 19, 2023
@holiman holiman added this to the 1.11.7 milestone May 19, 2023
@islishude islishude deleted the fix-free-disk-check branch May 21, 2023 04:49
devopsbo3 pushed a commit to HorizenOfficial/go-ethereum that referenced this pull request Nov 10, 2023
devopsbo3 added a commit to HorizenOfficial/go-ethereum that referenced this pull request Nov 10, 2023
devopsbo3 added a commit to HorizenOfficial/go-ethereum that referenced this pull request Nov 10, 2023
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

Successfully merging this pull request may close these issues.

4 participants