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: df doesn't check if the input path is a filesystem #3246

Closed
crazystylus opened this issue Mar 12, 2022 · 0 comments · Fixed by #3682
Closed

df: df doesn't check if the input path is a filesystem #3246

crazystylus opened this issue Mar 12, 2022 · 0 comments · Fixed by #3682
Labels

Comments

@crazystylus
Copy link
Contributor

crazystylus commented Mar 12, 2022

For example when we pass /dev/sda3 to df, it should print details of /dev/sda3 instead of considering it as mount point/filesystem path. Below are some example outputs:
gnu df

$ df --out=source,target /dev/sda3 .
Filesystem     Mounted on
/dev/sda3      /root
/dev/sda3      /root

uutils df

../../../target/release/df --out=source,target /dev/sda3 .
Filesystem       Mounted on
udev             /dev
/dev/sda3      /root
cakebaker added a commit to cakebaker/coreutils that referenced this issue Apr 22, 2022
cakebaker added a commit to cakebaker/coreutils that referenced this issue Jun 29, 2022
cakebaker added a commit to cakebaker/coreutils that referenced this issue Jun 29, 2022
sylvestre pushed a commit to cakebaker/coreutils that referenced this issue Jun 30, 2022
baiyuqing pushed a commit to baiyuqing/coreutils that referenced this issue Jul 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
2 participants