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

Warn on startup when data dir is too small #5601

Merged
merged 2 commits into from
Mar 5, 2025
Merged

Warn on startup when data dir is too small #5601

merged 2 commits into from
Mar 5, 2025

Conversation

rdettai
Copy link
Collaborator

@rdettai rdettai commented Jan 8, 2025

Description

Helps with #5589

How was this PR tested?

Describe how you tested this PR.

@rdettai rdettai requested a review from guilload January 8, 2025 11:05
@guilload guilload requested a review from fulmicoton January 17, 2025 18:43
for disk in disks.list() {
if dir_path.starts_with(disk.mount_point()) {
match best_match {
Some(best_disk) if disk.mount_point().starts_with(best_disk.mount_point()) => {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Alternatively you could have kept the disk with the longest mount path.

@fulmicoton-dd
Copy link
Collaborator

Can you edit the commit message

"Warn when data dir is too small"
-->
"Warn on startup when data dir is too small"

@rdettai rdettai changed the title Warn when data dir is too small Warn on startup when data dir is too small Mar 5, 2025
@rdettai rdettai enabled auto-merge (squash) March 5, 2025 15:01
@rdettai rdettai disabled auto-merge March 5, 2025 15:01
@rdettai rdettai enabled auto-merge (squash) March 5, 2025 15:22
@rdettai rdettai merged commit 9335835 into main Mar 5, 2025
7 of 8 checks passed
@rdettai rdettai deleted the disk-warn branch March 5, 2025 15:34
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.

2 participants