]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lsfd: introduce SOCK. column namespace
authorMasatake YAMATO <yamato@redhat.com>
Sat, 1 Oct 2022 21:00:50 +0000 (06:00 +0900)
committerMasatake YAMATO <yamato@redhat.com>
Mon, 3 Oct 2022 12:52:17 +0000 (21:52 +0900)
commit86a7e471bd0a2b84effba3f5bd00fab6061a2fde
tree72f19cbf4d3dc9cde4fca0dc5fce46cfdcfed41d
parentbe14f251f16b0c8cdc7e69f02d5a6f98c5820d8d
lsfd: introduce SOCK. column namespace

lsfd has many columns already. We will add more in the future.
e.g. --help output is too long.

Groping columns is one of the ways to improve the usability of lsfd.
As the first step, this change introduces the "SOCK." column namespace.

Conceptually SOCKNETNS, SOCKSTATE, and SOCKTYPE migrate to the
namespace.  At the implementation level, they are renamed to
SOCK.NETNS, SOCK.STATE, and SOCK.TYPE.

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
12 files changed:
misc-utils/lsfd-sock.c
misc-utils/lsfd.1.adoc
misc-utils/lsfd.c
misc-utils/lsfd.h
tests/expected/lsfd/mkfds-tcp
tests/expected/lsfd/mkfds-unix-dgram
tests/expected/lsfd/mkfds-unix-in-netns
tests/expected/lsfd/mkfds-unix-stream
tests/ts/lsfd/mkfds-tcp
tests/ts/lsfd/mkfds-unix-dgram
tests/ts/lsfd/mkfds-unix-in-netns
tests/ts/lsfd/mkfds-unix-stream