]> git.ipfire.org Git - thirdparty/util-linux.git/commit
lsns: reorganize members specifying other namespaces in lsns_namespace
authorMasatake YAMATO <yamato@redhat.com>
Wed, 28 Apr 2021 19:39:13 +0000 (04:39 +0900)
committerKarel Zak <kzak@redhat.com>
Mon, 24 May 2021 11:39:53 +0000 (13:39 +0200)
commitc67b83c10d6a0aec46c7f14aed4a8f7c5cbf88fc
treecfc8e407e3b58ed51b5d38b8d848aa9e720cbb8e
parente749d51a9c8b307fcbc78e64167ff8ef2ab9a122
lsns: reorganize members specifying other namespaces in lsns_namespace

This is a preparation change for planed "tree interpolation" patch.

parentid, ownerid, parentns, and ownerns were members of
lsns_namespace struct. When interpolating missing namespaces
for building a unified name space tree, duplicated functions
are needed; one is for parentid and parentns members, and
another is for ownerid and ownerns members. To avoid the
duplication, this change unifies the members as following:

 parentid and ownerid => related_id [2]
 parentns and ownerns => related_ns [2]

Signed-off-by: Masatake YAMATO <yamato@redhat.com>
sys-utils/lsns.c