]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
nvmecontrol: improve namespace size unit of devlist command output
authorWanpeng Qian <wanpengqian@gmail.com>
Fri, 7 Oct 2022 23:59:02 +0000 (17:59 -0600)
committerWarner Losh <imp@FreeBSD.org>
Fri, 7 Oct 2022 23:59:20 +0000 (17:59 -0600)
commit9c1bec9c21a2b14ac13b5f0ad6e447c082042e6a
tree9a21c9b8a8fe7b0e8f08b0820a77d0bd46b702bd
parent34aac98e3511d90df9209204df6772935a2b7617
nvmecontrol: improve namespace size unit of devlist command output

Add an option of -h --human to output human readable size unit instead
of the fixed unit (MB).

Signed-off-by: Wanpeng Qian <wanpengqian@gmail.com>
Reviewed by: imp, bcr
Differential Revision: https://reviews.freebsd.org/D32957
sbin/nvmecontrol/devlist.c
sbin/nvmecontrol/nvmecontrol.8