]> git.proxmox.com Git - mirror_zfs.git/commit
Fix zoneid when USER_NS is disabled
authorWraithh <github@ilkka.kapsi.fi>
Wed, 29 Nov 2023 17:55:17 +0000 (19:55 +0200)
committerGitHub <noreply@github.com>
Wed, 29 Nov 2023 17:55:17 +0000 (09:55 -0800)
commit8adf2e30665c412d8045f7c20d5426e954280357
tree181cd50ad526fe48312b6e5f3542187098f8a5d6
parent7d68900af367ca4ce2922207b19c97a4261c703d
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
lib/libspl/os/linux/zone.c