HEX
Server: Apache/2.2.34 (Unix) mod_fastcgi/mod_fastcgi-SNAP-0910052141
System: Linux Kou-Etsu-Dou 4.4.59+ #25556 SMP PREEMPT Thu Mar 4 18:03:46 CST 2021 x86_64
User: hosam (1026)
PHP: 7.2.29
Disabled: NONE
Upload Files
File: //lib/udev/rules.d/45-update-disk-info.rules
#author: System Integration Team
#only handle SATA/SAS/EUNIT port type
ENV{SYNO_DEV_DISKPORTTYPE}!="SATA|SAS|EUNIT|CACHE|SYS|ESATA", GOTO="disk_end"

#ignore partition
ENV{DEVTYPE}=="partition", GOTO="disk_end"
#ignore multipath device add which not the add of first target device
ENV{SYNO_SUPPORT_MULTIPATH}=="yes", KERNEL=="sas*", ENV{PHYSDEVDRIVER}!="sd", ACTION=="add", ENV{MPATH_TARGET_ADD_TYPE}!="init", GOTO="disk_end"


ACTION=="add", SUBSYSTEM=="block",  ENV{DEVNAME}!="", RUN+="/usr/syno/sbin/synostorage --add-disk %E{DEVNAME}"
ACTION=="remove", SUBSYSTEM=="block",  ENV{DEVNAME}!="", RUN+="/usr/syno/sbin/synostorage --remove-disk %E{DEVNAME}"

LABEL="disk_end"