]> git.droids-corp.org - dpdk.git/commit
usertools: add options for hugetlbfs mount point owner
authorDmitry Kozlyuk <dkozlyuk@nvidia.com>
Fri, 24 Jun 2022 13:19:53 +0000 (16:19 +0300)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 27 Jun 2022 00:24:12 +0000 (02:24 +0200)
commit8d73de6f7fcdeeacb67c58ca94871105a7414c4f
tree7761efae8312aeddfe36c56bb0272aa31e3349f1
parent31af02ef6f7cc5166a6afd636883255805376c40
usertools: add options for hugetlbfs mount point owner

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 unprivileged user.
HugeTLB filesystem has options to set the mount point owner.
Add --user/-U and --group/-G options to apply this when mounting.
The benefit of performing this in dpdk-hugepages.py
is that the user does not need to care about this detail
of mount command operation.

Signed-off-by: Dmitry Kozlyuk <dkozlyuk@nvidia.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
usertools/dpdk-hugepages.py