Skip to content

fix(udev): queue the messages on each node - #50

Merged
nsaintot merged 2 commits into
mainfrom
fix/udev-queue
Oct 28, 2026
Merged

nsaintot merged 2 commits into
mainfrom
fix/udev-queue

Conversation

@nsaintot

Copy link
Copy Markdown
Owner

Cherry-picks fd25975 by @9c5s from their fork (9c5s/cdj3k-emu), with them kept as author, and corrects the module's header comment on top.

A deck that joins a link with two players that have a USB drive gets both mounts on /proc/udev_usb1 0.23–0.5 s apart. FuseFilsine writes mount /media/player<NN>/usb nfs for each one. The deck reads a node about once a second. With one message per node, the second write replaced the first, and that player's USB was missing from SOURCE. Each node now queues up to 16 messages.

The same module and the same FuseFilsine messages apply to the CDJ-3000, CDJ-3000X and CDJ-1500X.

Test

Slot 4 (CDJ-3000 3.20) booting into a link with rekordbox and two CDJ-3000s that each have a USB drive. A traced module logged each write and read.

Module Boots Mount lost SOURCE
One message per node 3 2 One player's USB missing
Queue 3 0 Both USB drives and rekordbox listed

9c5s and others added 2 commits October 28, 2026 10:20
A node held one message, and a write replaced the unread one. When
rekordbox exports several drives, FuseFilsine writes one 'mount' line
per drive to /proc/udev_nfs about every 0.5 s, while the deck reads the
node about once a second. The deck then registered only some of the
drives, and a track on a missing drive failed to load with E-8305
(createReaderFor failed! kUnsupportedFile).

Each node now keeps up to 16 messages, and a read returns the oldest.
When a node is full, a write drops its oldest message with a warning
instead of failing: writers do not retry, and a model leaves some nodes
unread.
Another player's USB is announced on udev_usb1, and a rekordbox computer on
udev_nfs. A deck that joins a link with two players that have a USB drive gets
both mounts on udev_usb1 about 0.25 s apart, while it reads a node about once
a second. With a single message per node, one of the two players' USB drives
was missing from SOURCE.
@nsaintot
nsaintot merged commit 2b5a8f2 into main Oct 28, 2026
18 checks passed
@nsaintot
nsaintot deleted the fix/udev-queue branch October 28, 2026 11:07

This branch was previously deployed

1 inactive deployment
e2e — 8a0fb655 Deployed Oct 28, 2026 by nsaintot via E2E (Linux x86_64) #58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants