8000 df: --block-size command-line option is not implemented · Issue #3082 · uutils/coreutils · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

df: --block-size command-line option is not implemented #3082

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

Closed
jfinkels opened this issue Feb 6, 2022 · 1 comment
Closed

df: --block-size command-line option is not implemented #3082

jfinkels opened this issue Feb 6, 2022 · 1 comment
Labels

Comments

@jfinkels
Copy link
Collaborator
jfinkels commented Feb 6, 2022

From the documentation at https://www.gnu.org/software/coreutils/manual/html_node/df-invocation.html:

‘-B size’
‘--block-size=size’

Scale sizes by size before printing them (see Block size). For example, -BG prints sizes in units of 1,073,741,824 bytes.

GNU df:

$ df --block-size 1 /dev
Filesystem      1B-blocks  Used  Available Use% Mounted on
udev           3950620672     0 3950620672   0% /dev
jeffrey@vonneumann:~/src/coreutils$ df --block-size 2 /dev
Filesystem      2B-blocks  Used  Available Use% Mounted on
udev           1975310336     0 1975310336   0% /dev
jeffrey@vonneumann:~/src/coreutils$ df --block-size 3 /dev
Filesystem      3B-blocks  Used  Available Use% Mounted on
udev           1316873558     0 1316873558   0% /dev

uutils df:

$ ./target/debug/df --block-size 1 /dev
Filesystem          1k-blocks         Used    Available  Use% Mounted on       
udev               3950620672            0   3950620672    0% /dev            
$ ./target/debug/df --block-size 2 /dev
Filesystem          1k-blocks         Used    Available  Use% Mounted on       
udev               3950620672            0   3950620672    0% /dev            
$ ./target/debug/df --block-size 4 /dev
Filesystem          1k-blocks         Used    Available  Use% Mounted on       
udev               3950620672            0   3950620672    0% /dev  

Relates to #3058.

@jfinkels
Copy link
Collaborator Author
jfinkels commented May 7, 2022

I believe this is now fixed.

@jfinkels jfinkels closed this as completed May 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants
0