HomeFreeBSD

Fix zoneid when USER_NS is disabled

Description

Fix zoneid when USER_NS is disabled

getzoneid() should return GLOBAL_ZONEID instead of 0 when USER_NS is disabled.

Reviewed-by: Richard Yao <richard.yao@alumni.stonybrook.edu>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ilkka Sovanto <github@ilkka.kapsi.fi>
Closes #15560

Details

Provenance
Wraithh <github@ilkka.kapsi.fi>Authored on Nov 29 2023, 5:55 PM
GitHub <noreply@github.com>Committed on Nov 29 2023, 5:55 PM
Parents
rG7d68900af367: ZTS: get_persistent_disk_name can return truncated names
Branches
Unknown
Tags
Unknown

Event Timeline

GitHub <noreply@github.com> committed rG8adf2e30665c: Fix zoneid when USER_NS is disabled (authored by Wraithh <github@ilkka.kapsi.fi>).Nov 29 2023, 5:55 PM