The major flooding issue was solved with a minor fix.
The original intent of using open() on the block path was just to make sure that the drive was present. Unfortunately, I didn't realize that this action was generating a new udev event. Replacing the open() with a basic stat() check for folder presence.
The major flooding issue was solved with a minor fix.
The original intent of using open() on the block path was just to make sure that the drive was present. Unfortunately, I didn't realize that this action was generating a new udev event. Replacing the open() with a basic stat() check for folder presence.