Repository navigation
fix(udev): queue the messages on each node - #50
Merged
Merged
Conversation
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.
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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_usb10.23–0.5 s apart. FuseFilsine writesmount /media/player<NN>/usb nfsfor 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.