Server IP : 158.178.228.73 / Your IP : 80.80.80.153 Web Server : Apache/2.4.37 (Oracle Linux Server) OpenSSL/1.1.1k System : Linux ust-wp1-prod 5.15.0-308.179.6.el8uek.x86_64 #2 SMP Wed Apr 23 10:46:57 PDT 2025 x86_64 User : tomasFtp ( 1007) PHP Version : 8.4.8 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /lib/udev/rules.d/ |
Upload File : |
# register bcache devices as they come up # man 7 udev for syntax SUBSYSTEM!="block", GOTO="bcache_end" ACTION=="remove", GOTO="bcache_end" ENV{DM_UDEV_DISABLE_OTHER_RULES_FLAG}=="1", GOTO="bcache_end" KERNEL=="fd*|sr*", GOTO="bcache_end" # blkid was run by the standard udev rules # It recognised bcache (util-linux 2.24+) ENV{ID_FS_TYPE}=="bcache", GOTO="bcache_backing_found" # It recognised something else; bail ENV{ID_FS_TYPE}=="?*", GOTO="bcache_backing_end" # Backing devices: scan, symlink, register IMPORT{program}="probe-bcache -o udev $tempnode" ENV{ID_FS_TYPE}!="bcache", GOTO="bcache_backing_end" #The logic to prevent an existing symlink being overwritten by a #device having duplicate uuid once we got the uuid we are locking it out ,like Raid devices, raw disks, #LVM volumes. Hence same logic exists in the corresponding rule files. ENV{ID_FS_UUID_ENC}=="?*", PROGRAM=="/bin/sh -c '/usr/bin/findmnt UUID=$env{ID_FS_UUID_ENC} -o SOURCE --noheadings | /usr/bin/grep -E \"^$env{DEVNAME}$|^$env{DEVNAME}\[\"'", SYMLINK+="disk/by-uuid/$env{ID_FS_UUID_ENC}", GOTO="uuid_end" ENV{ID_FS_UUID_ENC}=="?*", PROGRAM!="/usr/bin/findmnt UUID=$env{ID_FS_UUID_ENC}", SYMLINK+="disk/by-uuid/$env{ID_FS_UUID_ENC}" LABEL="uuid_end" LABEL="bcache_backing_found" RUN{builtin}+="kmod load bcache" RUN+="bcache-register $tempnode" LABEL="bcache_backing_end" # Cached devices: symlink DRIVER=="bcache", ENV{CACHED_UUID}=="?*", \ SYMLINK+="bcache/by-uuid/$env{CACHED_UUID}" DRIVER=="bcache", ENV{CACHED_LABEL}=="?*", \ SYMLINK+="bcache/by-label/$env{CACHED_LABEL}" LABEL="bcache_end"