]> granicus.if.org Git - zfs/commit
Fix automount for root filesystems
authorBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 4 Oct 2019 19:30:51 +0000 (12:30 -0700)
committerGitHub <noreply@github.com>
Fri, 4 Oct 2019 19:30:51 +0000 (12:30 -0700)
commit6bd4f4545d3d334442fbe87d40ad0e0542703ce6
treeb5dd68d31b02cec719dc2f11d0e7f658c34a3f11
parent2cc479d049eb84b9cd7da9f2d64266429f3c3201
Fix automount for root filesystems

Commit 093bb64 resolved an automount failures for chroot'd processes
but inadvertently broke automounting for root filesystems where the
vfs_mntpoint is NULL.  Resolve the issue by checking for NULL in order
to generate the correct path.

Reviewed-by: Tom Caputi <tcaputi@datto.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #9381
Closes #9384
module/os/linux/zfs/zfs_ctldir.c