We could probably copy the BLOCKSIZE description from df.1 or du.1.
Created attachment 228343 [details] pstat(8) (also known as swapinfo(8)) patch Copy the ENVIRONMENT section from df(1) to swapinfo(8), except that the --si option is removed for swapinfo.
Comment on attachment 228343 [details] pstat(8) (also known as swapinfo(8)) patch Thanks for the patch! >+If >+.Ev BLOCKSIZE >+is not set, and the >+.Fl h , k , >+or >+.Fl m >+options are not specified, the block counts will be displayed in 512-byte >+blocks. I think that this part could be simplified to something along the lines of "defaults to 512-byte blocks".
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=39ad6e289f062fc8da239c0372f49b21f0911060 commit 39ad6e289f062fc8da239c0372f49b21f0911060 Author: Felix Johnson <felix.the.red@gmail.com> AuthorDate: 2022-07-08 19:33:02 +0000 Commit: Mateusz Piotrowski <0mp@FreeBSD.org> CommitDate: 2022-07-08 19:35:33 +0000 swapinfo.8: Mention BLOCKSIZE in the ENVIRONMENT section Copy the ENVIRONMENT section from df(1) to swapinfo(8), except that the --si option is removed for swapinfo. PR: 235225 Reported by: 0mp MFC after: 3 days usr.sbin/pstat/pstat.8 | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-)
Thanks for the patch, Felix!
A commit in branch stable/13 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=873117aefd2a3b796cc82942a885f066b1d6bf5d commit 873117aefd2a3b796cc82942a885f066b1d6bf5d Author: Felix Johnson <felix.the.red@gmail.com> AuthorDate: 2022-07-08 19:33:02 +0000 Commit: Mateusz Piotrowski <0mp@FreeBSD.org> CommitDate: 2023-10-04 11:14:57 +0000 swapinfo.8: Mention BLOCKSIZE in the ENVIRONMENT section Copy the ENVIRONMENT section from df(1) to swapinfo(8), except that the --si option is removed for swapinfo. PR: 235225 Reported by: 0mp MFC after: 3 days (cherry picked from commit 39ad6e289f062fc8da239c0372f49b21f0911060) usr.sbin/pstat/pstat.8 | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-)