diff options
author | Masatake YAMATO | 2017-11-24 11:31:06 +0100 |
---|---|---|
committer | Karel Zak | 2017-11-27 15:54:55 +0100 |
commit | 74d2056ae85f256ed35cbc55771887f5e28a6060 (patch) | |
tree | b7f5ec18a190ad70fce43af7a8a98aad54741592 /sys-utils/Makemodule.am | |
parent | lsns: add a case for testing netnsid column (diff) | |
download | kernel-qcow2-util-linux-74d2056ae85f256ed35cbc55771887f5e28a6060.tar.gz kernel-qcow2-util-linux-74d2056ae85f256ed35cbc55771887f5e28a6060.tar.xz kernel-qcow2-util-linux-74d2056ae85f256ed35cbc55771887f5e28a6060.zip |
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 <viro@zeniv.linux.org.uk>
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 <viro@zeniv.linux.org.uk>
/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 <yamato@redhat.com>
Diffstat (limited to 'sys-utils/Makemodule.am')
-rw-r--r-- | sys-utils/Makemodule.am | 4 |
1 files changed, 2 insertions, 2 deletions
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 |