HEX
Server: Apache/2.4.63 (Unix)
System: Linux TOMS-220NAS 4.4.302+ #86009 SMP Wed Nov 26 18:19:17 CST 2025 x86_64
User: flavio87 (1026)
PHP: 8.3.27
Disabled: NONE
Upload Files
File: //lib/udev/rules.d/10-unlock-disk.rules
#author: Storage Platform Team
#only handle SATA/SAS/EUNIT port type
ENV{SYNO_DEV_DISKPORTTYPE}!="SATA|SAS|EUNIT|CACHE|SYS", 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 --unlock-disk %E{DEVNAME}"

LABEL="disk_end"