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

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 11 Sep 2023 06:52:31 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=201735

Graham Perrin <grahamperrin@freebsd.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Severity|Affects Many People         |Affects Some People
           Assignee|bugs@FreeBSD.org            |fs@FreeBSD.org
             Status|New                         |Open

--- Comment #1 from Graham Perrin <grahamperrin@freebsd.org> ---
Not reproducible for me with OpenZFS in CURRENT. 

Below: 

* a first attempt to export was made very soon after changing directory

* the second attempt, a few seconds later, succeeded.

root@mowa219-gjp4-8570p-freebsd:~ # mount | grep Transcend
Transcend on /media/t1000 (zfs, local, nfsv4acls)
Transcend/VirtualBox on /media/t1000/VirtualBox (zfs, local, nfsv4acls)
root@mowa219-gjp4-8570p-freebsd:~ # cd /media/t1000/.zfs/snapshot
root@mowa219-gjp4-8570p-freebsd:/media/t1000/.zfs/snapshot # cd
root@mowa219-gjp4-8570p-freebsd:~ # time zpool export Transcend
cannot unmount '/media/t1000/VirtualBox': pool or dataset is busy
0.006u 0.006s 0:00.02 0.0%      0+0k 3+0io 3pf+0w
root@mowa219-gjp4-8570p-freebsd:~ # date ; time ; zpool export Transcend
Mon Sep 11 07:49:41 BST 2023
0.394u 1.228s 17:29:44.80 0.0%  389+199k 1304+0io 953pf+0w
root@mowa219-gjp4-8570p-freebsd:~ # 

----

% zfs version
zfs-2.2.99-FreeBSD_g804414aad
zfs-kmod-2.2.99-FreeBSD_g804414aad
% zpool version
zfs-2.2.99-FreeBSD_g804414aad
zfs-kmod-2.2.99-FreeBSD_g804414aad
% uname -aKU
FreeBSD mowa219-gjp4-8570p-freebsd 15.0-CURRENT FreeBSD 15.0-CURRENT amd64
1500000 #11 main-n265135-07bc20e4740d-dirty: Sat Sep  2 19:40:08 BST 2023    
grahamperrin@mowa219-gjp4-8570p-freebsd:/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODEBUG
amd64 1500000 1500000
%

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