[Bug 201735] zpool export fails after process accesses .zfs/snapshot directory

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Tue Jul 21 08:30:33 UTC 2015


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=201735

            Bug ID: 201735
           Summary: zpool export fails after process accesses
                    .zfs/snapshot directory
           Product: Base System
           Version: 11.0-CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: kern
          Assignee: freebsd-bugs at FreeBSD.org
          Reporter: marcus at blazingdot.com

This is broken:

    # zpool import derp
    # cd /derp/archive/archive/.zfs/snapshot
    # ls
    20141204 20141227 20150209 20150708 20150720
    # cd /
    # zpool export derp
    cannot unmount '/derp/archive/archive': Device busy

This works:

    # zpool import derp
    cd# cd /derp/archive/archive/.zfs/snapshot
    # ls
    20141204 20141227 20150209 20150708 20150720
    # cd /
    # zfs unmount derp/archive/archive
    # zpool export derp
    #

However, if you trigger the export bug first, the unmount is broken too.
This might provide a clue as to where the problem is.

    # zpool import derp
    # cd /derp/archive/archive/.zfs/snapshot
    # ls
    20141204 20141227 20150209 20150708 20150720
    # cd /
    # zpool export derp
    cannot unmount '/derp/archive/archive': Device busy
    # zfs unmount derp/archive/archive
    cannot unmount '/derp/archive/archive': Device busy

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-bugs mailing list