summaryrefslogtreecommitdiff
path: root/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp
diff options
context:
space:
mode:
authorAnkush Mondal <mondalankush9851@gmail.com>2025-11-29 16:45:30 +0530
committerWarner Losh <imp@FreeBSD.org>2026-01-09 13:17:12 -0700
commit539547151678c63903dddda214b16b177cf418b8 (patch)
tree60e2b3a9c36525435e42e6d417db07cecede0876 /source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp
parent2727bdebb366c3741509eb3553f0fee2453729d3 (diff)
df: Fix -k flag consistency with other BLOCKSIZE flags
This patch resolves inconsistent behavior between the -k option and other related flags, including -P. Previously, using -k resulted in output displayed in 1024-byte blocks, which did not align with the behavior of similar options such as -m and -g, where output is shown in 1M-blocks and 1G-blocks respectively. The updated implementation ensures that -k now correctly displays sizes in 1K-blocks. In addition, the patch incorporates the POSIX requirement that when both -k -P are specified, the block size must be explicitly forced to 1024-blocks. Together, these changes make the behavior of -k consistent, predictable, and compliant with the standard. Signed-off-by: Ankush Mondal <mondalankush9851@gmail.com> Reviewed by: imp Pull Request: https://github.com/freebsd/freebsd-src/pull/1906
Diffstat (limited to 'source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp')
0 files changed, 0 insertions, 0 deletions