From 74d2056ae85f256ed35cbc55771887f5e28a6060 Mon Sep 17 00:00:00 2001 From: Masatake YAMATO Date: Fri, 24 Nov 2017 19:31:06 +0900 Subject: lsns: add nsfs column nsfs provides kernel level interface for assigning logical name to a namespace. Following message is quoted from git log of linux kernel: commit 0226f4923f6c9b40cfa1c1c1b19a6ac6b3924ead Author: Al Viro Date: Tue Dec 6 12:21:54 2011 -0500 vfs: take /proc/*/mounts and friends to fs/proc_namespace.c rationale: that stuff is far tighter bound to fs/namespace.c than to the guts of procfs proper. Signed-off-by: Al Viro /proc/self/mountinfo lists the logical names for namespaces: ... 652 81 0:3 net:[4026532579] /tmp/XYZ rw shared:192 - nsfs nsfs rw,seclabel ... In the lines /tmp/XYZ is a logical name for 4026532579 of net namespace. This patch adds nsfs column. It seems that the logical name is used only in "ip netns" now. So the column is disabled by default. Use '--type=net' or '-o NSFS' options to enable it. This feature and the way to implementation using multi lines in a column is Suggested by Karel Zak. Signed-off-by: Masatake YAMATO --- sys-utils/Makemodule.am | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys-utils/Makemodule.am') diff --git a/sys-utils/Makemodule.am b/sys-utils/Makemodule.am index a85987c8e..b5b1d4f15 100644 --- a/sys-utils/Makemodule.am +++ b/sys-utils/Makemodule.am @@ -260,8 +260,8 @@ if BUILD_LSNS usrbin_exec_PROGRAMS += lsns dist_man_MANS += sys-utils/lsns.8 lsns_SOURCES = sys-utils/lsns.c -lsns_LDADD = $(LDADD) libcommon.la libsmartcols.la -lsns_CFLAGS = $(AM_CFLAGS) -I$(ul_libsmartcols_incdir) +lsns_LDADD = $(LDADD) libcommon.la libsmartcols.la libmount.la +lsns_CFLAGS = $(AM_CFLAGS) -I$(ul_libsmartcols_incdir) -I$(ul_libmount_incdir) endif -- cgit v1.2.3-55-g7522