Date: Fri, 28 Apr 2023 01:30:26 +0000 From: bugzilla-noreply@freebsd.org To: fs@FreeBSD.org Subject: [Bug 270988] vfs: Fix 'emptydir' mount option and vfs_emptydir() Message-ID: <bug-270988-3630-qrRzleQP4e@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-270988-3630@https.bugs.freebsd.org/bugzilla/> References: <bug-270988-3630@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D270988 --- Comment #1 from commit-hook@FreeBSD.org --- A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D6450e7bbad0c68176f28b51773a3af5d6= 022c7dd commit 6450e7bbad0c68176f28b51773a3af5d6022c7dd Author: Olivier Certner <olce.freebsd@certner.fr> AuthorDate: 2023-04-22 16:07:07 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> CommitDate: 2023-04-28 01:27:54 +0000 vfs: Fix "emptydir" mount option Fix vfs_emptydir(). It would consider directories containing directories with name of the form 'X.' (X being any authorized byte) as empty. Also, it would cause VOP_READDIR() to return an error on directories containing enough whiteouts. While here, use a more decently sized buffer as done elsewhere. Remove ad-hoc iteration on the directory's content and instead use the newly exported vn_dir_next_dirent() function (this is what fixes the second problem mentioned above). PR: 270988 Reviewed by: kib MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D39775 sys/kern/vfs_subr.c | 115 ++++++++++++++++++++++++++++++------------------= ---- 1 file changed, 67 insertions(+), 48 deletions(-) --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-270988-3630-qrRzleQP4e>