-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
udev-node: use flock() for symlink stack directory #23043
Commits on Sep 2, 2022
-
Configuration menu - View commit details
-
Copy full SHA for b916827 - Browse repository at this point
Copy the full SHA b916827View commit details -
udev: split link_update() and introduce stack_directory_get_name()
No functionality is changed.
Configuration menu - View commit details
-
Copy full SHA for 7e7c36f - Browse repository at this point
Copy the full SHA 7e7c36fView commit details -
udev: do not remove stack directory even if it is empty
Then, we can always assume the directory exists, and the code become slightly simpler. Note, unused directories are removed by the main udevd process in a later commit.
Configuration menu - View commit details
-
Copy full SHA for a28d67a - Browse repository at this point
Copy the full SHA a28d67aView commit details -
Configuration menu - View commit details
-
Copy full SHA for d4f60bd - Browse repository at this point
Copy the full SHA d4f60bdView commit details -
And try to read it only when the file is symlink.
Configuration menu - View commit details
-
Copy full SHA for faadf97 - Browse repository at this point
Copy the full SHA faadf97View commit details -
udev: rename link_find_prioritized() and variables
Also shorten code a bit. Just for consistency with other part and readability of the code.
Configuration menu - View commit details
-
Copy full SHA for 6b01e29 - Browse repository at this point
Copy the full SHA 6b01e29View commit details -
Configuration menu - View commit details
-
Copy full SHA for d6595c5 - Browse repository at this point
Copy the full SHA d6595c5View commit details -
Configuration menu - View commit details
-
Copy full SHA for 541a463 - Browse repository at this point
Copy the full SHA 541a463View commit details -
udev: use flock() when updating device node symlinks
By locking the stack directory, we can safely determine the device node with the highest priority for a symlink. So, the multiple try-and-wait loops can be dropped, and the code becomes quite simple.
Configuration menu - View commit details
-
Copy full SHA for 57a2729 - Browse repository at this point
Copy the full SHA 57a2729View commit details -
udev: cleanup stack directory /run/udev/links when all workers exited
By the previous commit, the stack directories are not removed even if it is empty. To reduce the inode usage of /run, let's cleanup the directories.
Configuration menu - View commit details
-
Copy full SHA for 1055172 - Browse repository at this point
Copy the full SHA 1055172View commit details