Package: coreutils Version: 9.5-1+b1 Dear Maintainer,
When I use the -B option to specify a block size, the block size is erroneously included as a suffix in the block count. For example: $ df / Filesystem 1K-blocks Used Available Use% Mounted on /dev/mapper/lucca0-root 1886389316 632645844 1247536332 34% / $ df -BK / Filesystem 1K-blocks Used Available Use% Mounted on /dev/mapper/lucca0-root 1886389316K 632645844K 1247536332K 34% / Note that the same filesystem is reported as having 1886389316 blocks (the correct value) and "1886389316K" blocks, despite the block size being the same in both cases. As "K" is defined as 1024, the second form implies a total size of "1800T". With -BG, the size is reported as being more than an exabyte: $ df -BG / Filesystem 1G-blocks Used Available Use% Mounted on /dev/mapper/lucca0-root 1800G 604G 1190G 34% / The block count should not include the suffix. Neither should "Used" and "Available", if these are indeed in block-sized units as the manual claims--though it's possible the manual is wrong here, as it is when "-h" or "-H" is used: $ df -h / Filesystem Size Used Avail Use% Mounted on /dev/mapper/lucca0-root 1.8T 604G 1.2T 34% / (The manual says "Otherwise, units default to 1024 bytes", but the units are bytes here. I think the actual output is clear enough.) - Michael -- System Information: Debian Release: trixie/sid APT prefers unstable-debug APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 'experimental') Architecture: amd64 (x86_64) Kernel: Linux 6.11.10-amd64 (SMP w/32 CPU threads; PREEMPT) Kernel taint flags: TAINT_WARN Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8), LANGUAGE=en_CA:en Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages coreutils depends on: ii libacl1 2.3.2-2+b1 ii libattr1 1:2.5.2-2 ii libc6 2.40-4 ii libgmp10 2:6.3.0+dfsg-2+b2 ii libselinux1 3.7-3+b1 ii libssl3t64 3.3.2-2 coreutils recommends no packages. coreutils suggests no packages. -- no debconf information
signature.asc
Description: PGP signature