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

df: fails to print filesystem when argument is . #3065

Closed
jfinkels opened this issue Feb 5, 2022 · 1 comment · Fixed by #3161
Closed

df: fails to print filesystem when argument is . #3065

jfinkels opened this issue Feb 5, 2022 · 1 comment · Fixed by #3161
Labels

Comments

@jfinkels
Copy link
Collaborator

jfinkels commented Feb 5, 2022

df is able to find my root filesystem if I run it without any other arguments:

$ ./target/debug/df | grep ubuntu
/dev/mapper/vgubuntu-root 248618848256  94480936960 154137911296   38% /               

but if I run df ., it does not print my root filesystem

Filesystem          1k-blocks         Used    Available  Use% Mounted on 

Contrast this with GNU df:

$ df .
Filesystem                1K-blocks     Used Available Use% Mounted on
/dev/mapper/vgubuntu-root 242791844 92266552 138122400  41% /
@crazystylus
Copy link
Contributor

crazystylus commented Feb 19, 2022

I think there is more to this issue. I have verified, if I have a partition mounted at /root and I have a folder /root/docs then df /root/docs should print the details /root. And similarly if docs folder doesn't exist, it should pop an error No such file or directory.

But in both cases output here is empty

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants