Bug 201735 - zpool export fails after process accesses .zfs/snapshot directory
Summary: zpool export fails after process accesses .zfs/snapshot directory
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Many People
Assignee: freebsd-bugs mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-21 08:30 UTC by Marcus Reid
Modified: 2015-07-21 08:30 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marcus Reid 2015-07-21 08:30:32 UTC
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