Date: Thu, 12 Oct 2017 13:07:17 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 222951] Re-starting a jail with mount.devfs mounts devfs multiple times Message-ID: <bug-222951-8@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D222951 Bug ID: 222951 Summary: Re-starting a jail with mount.devfs mounts devfs multiple times Product: Base System Version: 11.1-RELEASE Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: freebsd-bugs@FreeBSD.org Reporter: vlad-fbsd@acheronmedia.com Starting a jail that's configured with 'mount.devfs' with `jail -c` does not check if devfs is already mounted and mounts it again. The problem seems to be when the (nopersist) jail is stopped by itself beca= use all the processes in it have exited, so it wasn't explicitly `jail -r`. When that happens, devfs is not unmounted. So next time the jail is started, devfs is mounted again, resulting with multiple mounts of devfs into $JAIL_ROOT/dev: > % mount | grep /zroot/jails/test/dev > devfs on /zroot/jails/test/dev (devfs, local, multilabel) > devfs on /zroot/jails/test/dev (devfs, local, multilabel) > devfs on /zroot/jails/test/dev (devfs, local, multilabel) > devfs on /zroot/jails/test/dev (devfs, local, multilabel) If the jail is explicitly stopped with `jail -r`, devfs is unmounted. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-222951-8>