zfs fails on remount when using bind mounts

Bug #1699804 reported by Dan Streetman
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Linux
Fix Released
Unknown
linux (Ubuntu)
Confirmed
Low
Unassigned

Bug Description

When using a ZFS filesystem, if it is mounted and the bind-mounted, and then the original mount is unmounted, the bind mount will still be able to access the zfs filesystem contents, and zfs refuses to mount the original mount point.

This is upstream zfs bug 5796:
https://github.com/zfsonlinux/zfs/issues/5796

Example repro steps (from upstream bug):

zfs create tank/test
zfs set mountpoint=/tank-test tank/test
touch /tank-test/tank-test-file
mount -B /tank-test /mnt
zfs umount tank/test
ls -al /tank-test/ (filesystem unmounted, file not found)
ls -al /mnt (filesystem still referenced and file still found)
zfs mount tank/test (will complain about dataset being mounted)

Tags: cscc
Dan Streetman (ddstreet)
Changed in linux (Ubuntu):
importance: Undecided → Low
status: New → Confirmed
affects: linux → zfs
affects: zfs → linux
Changed in linux:
status: Unknown → New
Changed in linux:
status: New → Fix Released
Brad Figg (brad-figg)
tags: added: cscc
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.