Bug 187778 - [zfs] Two ZFS filesystems mounted on / at same time
Summary: [zfs] Two ZFS filesystems mounted on / at same time
Status: Closed Overcome By Events
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: Bugmeister
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-03-20 06:00 UTC by Cory Smelosky
Modified: 2025-01-19 06:55 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Cory Smelosky 2014-03-20 06:00:02 UTC
I managed to successfully mount two ZFS filesets at the same mountpoint: /

root@marie:~ # zfs mount green/ROOT/default
root@marie:~ # df -h
Filesystem                    Size    Used   Avail Capacity  Mounted on
marie/ROOT/default             69G    2.7G     67G     4%    /
devfs                         1.0K    1.0K      0B   100%    /dev
marie/tmp                      67G     40K     67G     0%    /tmp
marie/usr/home                 67G     39K     67G     0%    /usr/home
marie/usr/ports                68G    1.2G     67G     2%    /usr/ports
marie/usr/src                  67G    359M     67G     1%    /usr/src
marie/var                      67G    464M     67G     1%    /var
marie/var/crash                67G     32K     67G     0%    /var/crash
marie/var/log                  67G     67K     67G     0%    /var/log
marie/var/mail                 67G     31K     67G     0%    /var/mail
marie/var/tmp                  67G     32K     67G     0%    /var/tmp
Storage                       1.3T    168K    1.3T     0%    /mnt/Storage
Storage/Storage               2.4T    1.2T    1.3T    47%    /mnt/Storage/Storage
Storage/VirtualBox             50G     34G     16G    67%    /mnt/Storage/VirtualBox
marie-virt                    1.8T     32K    1.8T     0%    /marie-virt
marie-virt/jails              1.8T     48K    1.8T     0%    /marie-virt/jails
marie-virt/jails/basejail     1.8T    175M    1.8T     0%    /marie-virt/jails/basejail
marie-virt/jails/newjail      1.8T    1.8M    1.8T     0%    /marie-virt/jails/newjail
marie-virt/jails/green        1.8T    135M    1.8T     0%    /marie-virt/jails/green
procfs                        4.0K    4.0K      0B   100%    /marie-virt/jails/green/proc
/marie-virt/jails/basejail    1.8T    175M    1.8T     0%    /marie-virt/jails/green/basejail
devfs                         1.0K    1.0K      0B   100%    /marie-virt/jails/green/dev
fdescfs                       1.0K    1.0K      0B   100%    /marie-virt/jails/green/dev/fd
green/ROOT/default             18G    1.0G     17G     6%    /
root@marie:~ # zfs unmount green/ROOT/default
internal error: failed to initialize ZFS library

I am aware this is a case of PEBKAC, but this should not be possible.

How-To-Repeat: Use zroot + mount disk image of another zroot at the same time without changing mountpoints.
Comment 1 Mark Linimon freebsd_committer freebsd_triage 2014-03-24 05:24:50 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-fs

Over to maintainer(s).
Comment 2 Eitan Adler freebsd_committer freebsd_triage 2017-12-31 07:59:59 UTC
For bugs matching the following criteria:

Status: In Progress Changed: (is less than) 2014-06-01

Reset to default assignee and clear in-progress tags.

Mail being skipped
Comment 3 Mark Linimon freebsd_committer freebsd_triage 2025-01-19 06:55:22 UTC
^Triage: I'm sorry that this PR did not get addressed in a timely fashion.

By now, the version that it was created against is long out of support.
As well, many newer versions of ZFS have been imported.

Please re-open if it is still a problem on a supported version.