]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
6428 set canmount=off on unmounted filesystem tries to unmount children
authorAndriy Gapon <avg@FreeBSD.org>
Tue, 22 Nov 2016 11:50:52 +0000 (11:50 +0000)
committerAndriy Gapon <avg@FreeBSD.org>
Tue, 22 Nov 2016 11:50:52 +0000 (11:50 +0000)
commit5041986419d5eca8cf10dbfb5341d123ec1608a8
tree68797f4f37d57dadeae756e0169d96aa84583928
parent7f74889d89a07719a32fdfccd9948d809d9a7fc3
6428 set canmount=off on unmounted filesystem tries to unmount children

illumos/illumos-gate@c079fa4d202eff15e318131c52755d214ffa2da7
https://github.com/illumos/illumos-gate/commit/c079fa4d202eff15e318131c52755d214ffa2da7

https://www.illumos.org/issues/6428
  Scenario:
  $ zfs create rpool/p
  $ zfs set canmount=noauto rpool/p
  $ zfs umount rpool/p
  $ zfs create rpool/p/c
  $ zfs get -r mounted,canmount rpool/p
  NAME             PROPERTY  VALUE     SOURCE
  rpool/p    mounted   no        -
  rpool/p    canmount  noauto    local
  rpool/p/c  mounted   yes       -
  rpool/p/c  canmount  on        default
  In another shell ensure that rpool/p/c is in use, for example:
  $ cd /rpool/p/c
  Then:
  $ zfs set canmount=off rpool/p
  cannot unmount '/rpool/p/c': Device busy
  But there is no reason to try to unmount rpool/p/c in this scenario.

Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Approved by: Gordon Ross <gordon.w.ross@gmail.com>
Author: Andriy Gapon <andriy.gapon@clusterhq.com>
lib/libzfs/common/libzfs_dataset.c