Project

General

Profile

Bug #6428

set canmount=off on unmounted filesystem tries to unmount children

Added by Andriy Gapon almost 4 years ago. Updated almost 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
zfs - Zettabyte File System
Start date:
2015-11-03
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
needs-triage

Description

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.

History

#1

Updated by Electric Monk almost 3 years ago

  • % Done changed from 0 to 100
  • Status changed from New to Closed

git commit c079fa4d202eff15e318131c52755d214ffa2da7

commit  c079fa4d202eff15e318131c52755d214ffa2da7
Author: Andriy Gapon <andriy.gapon@clusterhq.com>
Date:   2016-11-22T00:11:45.000Z

    6428 set canmount=off on unmounted filesystem tries to unmount children
    Reviewed by: Matthew Ahrens <mahrens@delphix.com>
    Approved by: Gordon Ross <gordon.w.ross@gmail.com>

Also available in: Atom PDF