Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Feb 2013 17:28:00 GMT
From:      Spank Me <spankthespam@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   misc/176482: Jails not unmounting devfs on exit
Message-ID:  <201302271728.r1RHS0ir097586@red.freebsd.org>
Resent-Message-ID: <201302271730.r1RHU0wX038760@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         176482
>Category:       misc
>Synopsis:       Jails not unmounting devfs on exit
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Feb 27 17:30:00 UTC 2013
>Closed-Date:
>Last-Modified:
>Originator:     Spank Me
>Release:        9.1-STABLE
>Organization:
>Environment:
FreeBSD 222-freebsd 9.1-STABLE FreeBSD 9.1-STABLE #1: Wed Feb 27 10:30:10 CET 2013     root@222-freebsd:/usr/obj/usr/src/sys/KAROL amd64
>Description:
When creating jails using 'jail' command with mount.devfs option, and then killing jail using 'jail -r' or exiting the '/bin/sh' only jail, the devfs filesystem is being left mounted leading to multiple mounts under the same directory when overlooked.
>How-To-Repeat:
root@222-freebsd:~ # jls
   JID  IP Address      Hostname                      Path
root@222-freebsd:~ # mount
/dev/ad0p2 on / (ufs, local, journaled soft-updates)
devfs on /dev (devfs, local, multilabel)
storage on /storage (zfs, local, nfsv4acls)
storage/generic on /storage/generic (zfs, local, nfsv4acls)
root@222-freebsd:~ # jail -c host.hostname=generic path=/storage/generic ip4.addr=10.1.1.222 mount.devfs command=/bin/tcsh
root@generic:/ # jls
   JID  IP Address      Hostname                      Path
root@generic:/ # mount
storage/generic on / (zfs, local, nfsv4acls)
root@generic:/ # exit
root@222-freebsd:~ # jls
   JID  IP Address      Hostname                      Path
root@222-freebsd:~ # mount
/dev/ad0p2 on / (ufs, local, journaled soft-updates)
devfs on /dev (devfs, local, multilabel)
storage on /storage (zfs, local, nfsv4acls)
storage/generic on /storage/generic (zfs, local, nfsv4acls)
devfs on /storage/generic/dev (devfs, local, multilabel)
root@222-freebsd:~ # jail -c host.hostname=generic path=/storage/generic ip4.addr=10.1.1.222 mount.devfs command=/bin/tcsh
root@generic:/ # jls
   JID  IP Address      Hostname                      Path
root@generic:/ # mount
storage/generic on / (zfs, local, nfsv4acls)
root@generic:/ # exit
root@222-freebsd:~ # jls
   JID  IP Address      Hostname                      Path
root@222-freebsd:~ # mount
/dev/ad0p2 on / (ufs, local, journaled soft-updates)
devfs on /dev (devfs, local, multilabel)
storage on /storage (zfs, local, nfsv4acls)
storage/generic on /storage/generic (zfs, local, nfsv4acls)
devfs on /storage/generic/dev (devfs, local, multilabel)
devfs on /storage/generic/dev (devfs, local, multilabel)
root@222-freebsd:~ #
>Fix:
Unknown.

>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201302271728.r1RHS0ir097586>