[DragonFlyBSD - Bug #3457] (Resolved) ext2fs and UFS: rename that fails after the source reference is taken leaves the filesystem busy

liweitianux bugtracker-admin at leaf.dragonflybsd.org
Fri Oct 23 06:19:56 PDT 2026


Issue #3457 has been updated by liweitianux.

Status changed from New to Resolved

All patches merged. Thank you very much.

----------------------------------------
Bug #3457: ext2fs and UFS: rename that fails after the source reference is taken leaves the filesystem busy
http://bugs.dragonflybsd.org/issues/3457#change-14911

* Author: sigttou
* Status: Resolved
* Priority: Normal
* Category: Kernel
* Target version: 6.6
* Start date: 2026-10-22
----------------------------------------
@rename(2)@ that fails in @ext2_rename()@ or @ufs_rename()@ after the source directory is referenced (@ENOTEMPTY@, or @EACCES@ on the source directory) returns through bad:/out: without releasing @fdvp at . The mount then stays busy:

 mkdir a b; touch b/k; mv a b     (errno 66)
umount: Device busy; vnconfig -u: busy; umount -f recovers

FreeBSD releases @fdvp@ before these paths. The VFS conversion removed that release but did not add one to the error paths.


---Files--------------------------------
ext2-0001-ext2fs-release-fdvp-on-rename-errors-after-the-sourc.patch (1.04 KB)
ufs-0001-ufs-release-fdvp-on-rename-errors-after-the-source-c.patch (1.04 KB)


-- 
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account


More information about the Bugs mailing list