Re: [PATCH 2/4] usertools: add option to change mount point owner

2022-06-07 Thread Stephen Hemminger
On Wed, 8 Jun 2022 02:49:47 +0300 Dmitry Kozlyuk wrote: > > -def mount_huge(pagesize, mountpoint): > +def mount_huge(pagesize, mountpoint, owner): > '''Mount the huge TLB file system''' > if mountpoint in get_mountpoints(): > print(mountpoint, "already mounted") > @@ -180,6 +

[PATCH 2/4] usertools: add option to change mount point owner

2022-06-07 Thread Dmitry Kozlyuk
Per mount(8), the previous owner and mode of the mount point become invisible as long as this filesystem remains mounted. Because dpdk-hugepages.py must be run as root, the new owner would be root. This is undesirable if the hugepage directory is being set up by the administrator for an unprivilege