summaryrefslogtreecommitdiff
path: root/src/basic/devnum-util.c
Commit message (Collapse)AuthorAgeFilesLines
* devnum-util: add new devnum_is_zero() helperLennart Poettering2023-03-291-1/+1
|
* chase-symlinks: Rename chase_symlinks() to chase()Daan De Meyer2023-03-241-2/+2
| | | | | | | | | Chasing symlinks is a core function that's used in a lot of places so it deservers a less verbose names so let's rename it to chase() and chaseat(). We also slightly change the pattern used for the chaseat() helpers so we get chase_and_openat() and similar.
* devnum-util: split-out device_path_make_inaccessible()Yu Watanabe2022-08-281-17/+20
|
* systemd-growfs: use sd_device_new_from_devnum()Devendra Tewari2022-08-261-48/+0
| | | | | Use sd_device_new_from_devnum() instead of device_path_make_major_minor_sysfs().
* systemd-growfs: remove dependency on udev symlinksDevendra Tewari2022-08-241-0/+48
| | | | | | systemd-growfs currently requires that udev ran first to work (because /dev/block/ symlinks must exist) but that is not what happens when we're not using initrd and systemd is PID1.
* devnum-util: catch potential stack overruns earlyLennart Poettering2022-04-131-0/+2
|
* devnum-util: define helper macros for formatting devnum major/minor pairsLennart Poettering2022-04-131-1/+1
| | | | And port some parts over.
* basic: split out dev_t related calls into new devno-util.[ch]Lennart Poettering2022-04-131-0/+133
No actual code changes, just splitting out of some dev_t handling related calls from stat-util.[ch], they are quite a number already, and deserve their own module now I think. Also, try to settle on the name "devnum" as the name for the concept, instead of "devno" or "dev" or "devid". "devnum" is the name exported in udev APIs, hence probably best to stick to that. (this just renames a few symbols to "devum", local variables are left untouched, to make the patch not too invasive) No actual code changes.