Public bug reported:

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)

** Affects: linux
     Importance: Unknown
         Status: New

** Affects: linux (Ubuntu)
     Importance: Low
         Status: Confirmed

** Changed in: linux (Ubuntu)
   Importance: Undecided => Low

** Changed in: linux (Ubuntu)
       Status: New => Confirmed

** Bug watch added: Github Issue Tracker for ZFS #5796
   https://github.com/zfsonlinux/zfs/issues/5796

** Also affects: linux via
   https://github.com/zfsonlinux/zfs/issues/5796
   Importance: Unknown
       Status: Unknown

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1699804

Title:
  zfs fails on remount when using bind mounts

Status in Linux:
  New
Status in linux package in Ubuntu:
  Confirmed

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)

To manage notifications about this bug go to:
https://bugs.launchpad.net/linux/+bug/1699804/+subscriptions

-- 
Mailing list: https://launchpad.net/~kernel-packages
Post to     : kernel-packages@lists.launchpad.net
Unsubscribe : https://launchpad.net/~kernel-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to