Re: [PATCH 1/2] lsns: add netnsid column

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

> I do not have any changes yet ;-) So, you can start, or if you're busy
> with something else I can do that.

It works:

# ./lsns --type=net
        NS TYPE NPROCS   PID USER     NETNSID NSFS           COMMAND
4026531993 net     405     1 root  unassigned                /usr/lib/systemd/systemd --switched-root --system --deserialize 25
4026532433 net       1  1515 rtkit unassigned                /usr/libexec/rtkit-daemon
4026532579 net       1 10432 root  unassigned /run/netns/QWE bash
                                              /tmp/RTY

> This feature should be probably disabled for --raw, maybe add --nowrap
> and in this case use "," as separator and remove SCOLS_FL_WRAP for the
> column in init_scols_table().

It seems that nsfs is still not so popular.
So I think enabling the column only when --type net is given, as
you suggested about netnsid.

I would like to make clarify what you meant.

If both --raw and -o NSFS are given, what I should do?
Hidden NSFS anyway? or Use ',' as separator instead of '\n'?

Masatake YAMATO
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux