-
Notifications
You must be signed in to change notification settings - Fork 396
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
cmds/core/df: skip mount point on permission error #2813
Conversation
Signed-off-by: Siarhiej Siemianczuk <pdp.eleven11@gmail.com>
current version fails on fedora, but runs fine under root maybe error message can be improved as well... |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## main #2813 +/- ##
==========================================
+ Coverage 75.16% 75.32% +0.15%
==========================================
Files 432 432
Lines 42965 42967 +2
==========================================
+ Hits 32295 32364 +69
+ Misses 10670 10603 -67 ☔ View full report in Codecov by Sentry. |
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 could confuse people, however: running df on one directory and have it do nothing at all? e.g.
% df /abc
%
People are going to think it's doing nothing or broken. Does it really do this on the standard df, just have a silent failure?
It may need two return params, maybe, if this is the case. What is fedora doing? Can you trace it to a kernel difference?
I found this issue because tests for df command on fedora is falling now. We can write and error log to stderr, but I found that df just ignores such error and move on. Fedora df is doing this, when I execute df with no parameters.
And current u-root df version is doing this:
|
No description provided.