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/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 %k"
ACTION=="add|remove", RUN+="/lib/udev/script/hotplugd-util.sh prepare_hotplug_event_file"
ACTION=="add", ENV{SYNO_INFO_PLATFORM_NAME}=="kvmx64", RUN+="/lib/udev/script/hotplugd-util.sh tune-vdsm-disks %k"
ACTION=="add", ENV{SYNO_INFO_PLATFORM_NAME}=="kvmx64", RUN+="/lib/udev/script/hotplugd-util.sh create-vdsm-volumes %k"

ACTION=="add", ENV{SYNO_INFO_PLATFORM_NAME}=="nextkvmx64", RUN+="/lib/udev/script/hotplugd-util.sh tune-vdsm-disks %k"
ACTION=="add", ENV{SYNO_INFO_PLATFORM_NAME}=="nextkvmx64", RUN+="/lib/udev/script/hotplugd-util.sh create-vdsm-volumes %k"

LABEL="disk_end"