-
Notifications
You must be signed in to change notification settings - Fork 222
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
NO-ISSUE: Ensure that hard links are accounted for when measuring disk usage #7217
NO-ISSUE: Ensure that hard links are accounted for when measuring disk usage #7217
Conversation
@paul-maidment: This pull request explicitly references no jira issue. In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the openshift-eng/jira-lifecycle-plugin repository. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: paul-maidment The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
be99cc1
to
7d2be19
Compare
…k usage. When we measure the disk usage for metrics, we need to ensure that hard links are accounted for as these may lead to an inaccurate count. This PR modifies the gathering of filesizes slightly to perform a stat on each file and take into account the unique inode number. Hard links and actual files share the same inode number as this is a reference to the underlying data.
7d2be19
to
6ac1134
Compare
/lgtm |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #7217 +/- ##
=======================================
Coverage 67.88% 67.89%
=======================================
Files 298 298
Lines 40666 40671 +5
=======================================
+ Hits 27607 27612 +5
Misses 10588 10588
Partials 2471 2471
|
/retest |
1 similar comment
/retest |
/test edge-subsystem-kubeapi-aws |
@paul-maidment: all tests passed! Full PR test history. Your PR dashboard. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here. |
[ART PR BUILD NOTIFIER] Distgit: ose-agent-installer-api-server |
When we measure the disk usage for metrics, we need to ensure that hard links are accounted for as these may lead to an inaccurate count. This PR modifies the gathering of filesizes slightly to perform a stat on each file and take into account the unique inode number.
Hard links and actual files share the same inode number as this is a reference to the underlying data.
List all the issues related to this PR
What environments does this code impact?
How was this code tested?
Checklist
docs
, README, etc)Reviewers Checklist