-
Notifications
You must be signed in to change notification settings - Fork 3
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
[825] Incorrect disk space calculation inside docker container #828
base: master
Are you sure you want to change the base?
[825] Incorrect disk space calculation inside docker container #828
Conversation
Please, do not forget to fix space calculation from results of |
bob/src/hw_metrics_collector.rs
Outdated
if dev_path | ||
.iter() | ||
.filter(|(dev, _)| *dev == metadata.dev()) | ||
.any(|(_, path)| disk.mount_point().file_name() == path.file_name()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not correct. We should check that disk.mount_point()
is a prefix of path
. Example: mount_point = "/opt/disk1/", path = "/opt/disk1/bob"
. Use starts_with
function
Closes #825
Note 1: usage of frsize instead of bsize seems to do nothing (at least on Linux). Needs to be tested on some Mac machine, where it's first occured. Also this change about frsize needs to be done after #823 will be merged, since that function was rewritten there