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/50-disk.rules
# author: Business Platform Team

# multipath snapshot update for nSas*
KERNEL=="nSas*", ENV{SYNO_SUPPORT_MULTIPATH}=="yes", ENV{ACTION}=="add|remove", RUN+="/lib/udev/script/sas-snapshot-update.sh"

# only handel SATA, SAS, ESATA, EUNIT, CACHE
ENV{SYNO_DEV_DISKPORTTYPE}!="SATA|SAS|ESATA|EUNIT|CACHE|SYS", GOTO="disk_end"

# ignore partition, don't send hotplug event
ENV{DEVTYPE}=="partition", GOTO="disk_end"

# make a enclosure status snapshot for disk removal
ACTION=="add|remove", ENV{SYNO_SUPPORT_SAS}=="yes", ENV{SYNO_DEV_DISKPORTTYPE}=="SAS|EUNIT|CACHE", RUN+="/lib/udev/script/sas-snapshot-update.sh"

ACTION=="add", ENV{SYNO_SUPPORT_SAS}=="yes", ENV{SYNO_DEV_DISKPORTTYPE}=="SAS|EUNIT|CACHE", RUN+="/usr/syno/bin/sasdiskselftestinterrupt.sh %k"
ACTION=="add|remove", RUN+="/lib/udev/script/hotplugd-util.sh prepare_hotplug_event_file"
ACTION=="add", ENV{SYNO_INFO_PLATFORM_NAME}=="kvmx64|nextkvmx64", RUN+="/lib/udev/script/hotplugd-util.sh create-vdsm-volumes %k"

LABEL="disk_end"