🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: muc.lists.freebsd.fs
Article #28

Experiencing deadlock when trying to list root directory in custom filesystem

#28
From: Gabe Bauer
Date: Tue, 03 Nov 2026 00:17
40 lines
7736 bytes
--0000000000004e0afe065f5432fe
Content-Type: text/plain; charset="UTF-8"

Hello! I recently started work trying to port a filesystem I wrote for FUSE
to a FreeBSD kernel module. I am able to successfully mount and unmount,
however, the VM I am doing the development in freezes when I try to ls
/mnt. I thought that trying to adopt the same patterns as UFS for the root
vnode function and vget would help this problem. It did not. I posted a
question about this to StackOverflow and the code itself is in a public
GitHub repository. The StackOverflow question can be found here
<https://stackoverflow.com/questions/80013759/experiencing-deadlock-when-trying-to-list-root-directory-in-custom-filesystem>
and
the GitHub repository can be found here
<https://github.com/gjbauer/proj3-kern-module>. Any help here would be
appreciated. Thank you very much!!

--0000000000004e0afe065f5432fe
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hello! I recently started work trying to port a filesystem=
 I wrote for FUSE to a FreeBSD kernel module. I am able to successfully mou=
nt and unmount, however, the VM I am doing the development in freezes=C2=A0=
when I try to ls /mnt. I thought that trying to adopt the same patterns as =
UFS for the root vnode function and vget=C2=A0would help this problem. It d=
id not. I posted a question about this to StackOverflow and the code itself=
 is in a public GitHub repository. The StackOverflow question can be found=
=C2=A0<a href=3D"https://stackoverflow.com/questions/80013759/experiencing-=
deadlock-when-trying-to-list-root-directory-in-custom-filesystem" target=3D=
"_blank">here</a>=C2=A0and the GitHub repository can be found=C2=A0<a href=
=3D"https://github.com/gjbauer/proj3-kern-module" target=3D"_blank">here</a=
>. Any help here would be appreciated. Thank you very=C2=A0much!!<br class=
=3D"gmail-Apple-interchange-newline"></div>

--0000000000004e0afe065f5432fe--


--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Technical Details
Message-ID: <CAJh+eQuXLw7+510MfrOHswV8rHY1bi1p7ZKj2sbOwmo-5sJHPw@mail.gmail.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mail

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!2.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.space.net!news.muc.de!.POSTED.news.muc.de!not-for-mail
From: Gabe Bauer <gabeb1277@gmail.com>
Newsgroups: muc.lists.freebsd.fs
Subject: Experiencing deadlock when trying to list root directory in custom filesystem
Date: Mon, 2 Nov 2026 19:17:54 -0500
Organization: Newsgate at muc.de e.V.
Sender: owner-freebsd-fs@FreeBSD.org
Approved: news-admin@muc.de
Distribution: world
Message-ID: <CAJh+eQuXLw7+510MfrOHswV8rHY1bi1p7ZKj2sbOwmo-5sJHPw@mail.gmail.com>
MIME-Version: 1.0
Content-Type: multipart/alternative; boundary="0000000000004e0afe065f5432fe"
Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2";
	logging-data="22353"; mail-complaints-to="news-admin@muc.de"
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim;
	t=1793665101; h=from:from:sender:sender:reply-to:subject:subject:date:date:
	 message-id:message-id:to:to:cc:mime-version:mime-version:
	 content-type:content-type:list-id:list-help:list-owner:
	 list-unsubscribe:list-subscribe:list-post;
	bh=0cLxL49unOa9C64ELZapN8cBFhaUCd3g5ow9UsRpUo0=;
	b=kPBC1HQgH4x5YMYt1mPXw4ydpYg48RMukYGEYwKB6o/LEGmS9VPZ6trN9ac8k2Mx1mK+BS
	1HNmdDnlUuwTAfycgk56RrrUcfhASJ3RyctLG0sWi9LEij0SWL7UEEsmMFAeBVSD/pCOnZ
	SxLkLdZRzFzMuxISa9uqxyXqinLP/Tp2POifmBTvAq9FEbJ5PI8+xM/TB92D4wzqcHFIEu
	68PwevnKmxpJufRYeFUVy9O2d51MzejapXcBYYlfH5ZyI17lnVmOSyzIMqOy7Ky9517ATw
	GrV2W9ZB4z4FeCJMz5DbgKgQIOCeZAJXzHePL7DM15yaStzEFQ3tWgJh7mRdew==
X-Original-To: freebsd-fs@mlmmj.nyi.freebsd.org
Authentication-Results: mx1.freebsd.org;
	dkim=pass header.d=gmail.com header.s=20260707 header.b=na4vtWvX;
	spf=pass (mx1.freebsd.org: domain of gabeb1277@gmail.com designates 2607:f8b0:4864:20::42c as permitted sender) smtp.mailfrom=gabeb1277@gmail.com;
	dmarc=pass (policy=none) header.from=gmail.com;
	arc=pass ("google.com:s=arc-20260327:i=1")
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=gmail.com; s=20260707; t=1793665086; x=1794269886; darn=freebsd.org;
        h=content-type:to:subject:message-id:date:from:mime-version:from:to
         :cc:subject:date:message-id:reply-to:content-type;
        bh=0cLxL49unOa9C64ELZapN8cBFhaUCd3g5ow9UsRpUo0=;
        b=na4vtWvXKOoFaBhZuMHAx4yP/aR9BWe9reBLpYFXgBK2jQsjGXq7llp4V9tp8YsMkH
         IWgC571oCP3H01EqXb4/aqGeaaOdrdw0GVX9TyW/cCm8Vyyz+9NDW3jtZXa8aIBT3UTz
         NYHlaTcD0N6w8uMpzdxKxuXK6e8b8kgF8CYCG5SMtx6+ojOZEXSPEgcDmob2CHNCihsp
         nrAN/c/DTPtkd8lpGJEd8FD3N8ET3dWxT7GZjcuAnKT8Kk5o9CDObB7kTCaGexNghOXS
         GISjDPlLM0Utn1JK3GBzH9bYHjhw6hknkxolZt8Qx3iQtLyA0KyhbhJ6r4MLPT/Ojf+J
         1cKA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
        d=1e100.net; s=20260707; t=1793665086; x=1794269886;
        h=content-type:to:subject:message-id:date:from:mime-version:x-gm-gg
         :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to
         :content-type;
        bh=0cLxL49unOa9C64ELZapN8cBFhaUCd3g5ow9UsRpUo0=;
        b=rFmX6wZNgibTFq+dednYgHSkZMreNDY2rIZ0esk+n1uUZ8llya6Rynpa2yVIhlfIlo
         QHSnGXB9QjBEi5ggF8su6WZ68xarg3KDShbrJWlzTHMu14pGRvK00d7Kb1Ip8gIvswKK
         KEvKEML9upXsF31dyzw6EGcFw4ohtHcw4ey239C+ZwZAWDaWhXnIeVaE/bsiOKbRD565
         r4h8+YaHoUPO4piYYNV5Gvf1Uq2EQs6GPoe/Jk+zCWL9+4uCup7LrzZBOgcTZ24SdtwJ
         72LLfO6PnZLui8KtJWeKxSrLHERJT4kddZpzFlMcQqSrnpv/0XtTRO+m0cyuO3TNbUDG
         gppA==
X-Gm-Message-State: APuU4Z8gxfvCTqFidpZo6RXsSTO5fzAkGXPh6OIDQywHEWslU+H330Ff
	ftkFL5Otb1IgTvGLX15QQcOJK4asJ65eOswU1lPpk3kAkfAtRq2iIyJFEAffHqwWZEo6LTMjZKx
	86w5SwfcCFQU47VbU/FNb4e4/XmS4uilAStC9MC4=
X-Gm-Gg: AYBFou0hoD5h4XZ0FJv+1FCwbWwSVUcXAjqVNv/k8iX9uK2E+1KPrAsGSXtfN8nxrsL
	IAj/Abtv06UNR8axC3k1b7IMee35VzbSs+ZCMQ1I1FpzwJ/v8tjcGJ9mfT+Ebsgu4KFmnDyDgcl
	nQYc8GnEH5l26gncuHrvTLxAFJ9bAtOtkBuJpV7YSXufqLaDCGAhxkwuLo3VUV0jWk7+zjP+5OD
	rAkOrBaDUN+KlaHWzEBtqheLeceFJbT1JHwlTWwv6MxwMipKsJlLZtOZUz0nWZk3c46fJEpG4Dg
	6uQqxzBR8PxrJehffVme3cfuFNgJbQzoSmMwhxeCLkeDO6HuLquVNA97YZABPGTvT8fBTBxcmMq
	MZOIo7k62KAQ9ZdktUevbwD8U6uJp0qaOgIyipJNlVpuU7NlEXvl7NhU1p63iB1rXck6U0T/0gx
	rJ0PsflSwqH5/YLPQo12ziKo2MEtFj2r0tRT/7YPcQh/51gSj8eq6bdnHkV2JDyZWWS8++W0QP+
	QDbPKATrXKfjiUqEZQYmkgCFbaxKlxdHIPN0gta2oSKMr4w+l6c7vB5rbXLA5utlX5ImgzWuydh
	OcHIyDo7zjB+MSZBQonhb27pBKPWXDtqj67EJMca
Precedence: list
X-Gm-Features: AclHuK9-b8MV4kGn_LJ1zfV1A_yC6cU_OdVW8TSNNVrgaZhWNudX3i3KG-IZ7Dw
X-Rspamd-Queue-Id: 4jJTgN1FXtz3NwV
X-Spamd-Bar: --
X-Spamd-Result: default: False [-2.00 / 15.00];
	ARC_ALLOW(-1.00)[google.com:s=arc-20260327:i=1];
	DMARC_POLICY_ALLOW(-0.50)[gmail.com,none];
	R_SPF_ALLOW(-0.20)[+ip6:2607:f8b0:4864::/56:c];
	R_DKIM_ALLOW(-0.20)[gmail.com:s=20260707];
	MIME_GOOD(-0.10)[multipart/alternative,text/plain];
	RCVD_COUNT_ONE(0.00)[1];
	ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US];
	MIME_TRACE(0.00)[0:+,1:+,2:~];
	FREEMAIL_FROM(0.00)[gmail.com];
	MISSING_XM_UA(0.00)[];
	DWL_DNSWL_NONE(0.00)[gmail.com:dkim];
	FREEMAIL_ENVFROM(0.00)[gmail.com];
	RCPT_COUNT_ONE(0.00)[1];
	MLMMJ_DEST(0.00)[freebsd-fs@freebsd.org];
	MID_RHS_MATCH_FROMTLD(0.00)[];
	FROM_EQ_ENVFROM(0.00)[];
	FROM_HAS_DN(0.00)[];
	RCVD_IN_DNSWL_NONE(0.00)[2607:f8b0:4864:20::42c:from];
	TO_DN_NONE(0.00)[];
	PREVIOUSLY_DELIVERED(0.00)[freebsd-fs@freebsd.org];
	TO_MATCH_ENVRCPT_ALL(0.00)[];
	RCVD_TLS_LAST(0.00)[];
	DKIM_TRACE(0.00)[gmail.com:+]
X-Newsgate-Id: f02c70b8849f+
X-No-Archive: Yes