3 Star 0 Fork 0

mirrors_git_kernel_org/pub_scm_utils_mdadm_mdadm

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
udev-md-clustered-confirm-device.rules 849 Bytes
一键复制 编辑 原始数据 按行查看 历史
# do not edit this file, it will be overwritten on update
SUBSYSTEM!="block", GOTO="clustermd_end"
# handle md arrays
KERNEL!="md*", GOTO="clustermd_end"
ENV{DEVTYPE}!="disk", GOTO="clustermd_end"
ACTION!="change", GOTO="clustermd_end"
ENV{EVENT}!="ADD_DEVICE", GOTO="clustermd_end"
ENV{DEVICE_UUID}!="?*", GOTO="clustermd_end"
ENV{RAID_DISK}!="?*", GOTO="clustermd_end"
# Based on the received UUID, node confirms the device if
# it is found by blkid, otherwise the node reports it is
# missing.
PROGRAM="BINDIR/blkid -o device -t UUID_SUB=$env{DEVICE_UUID}", ENV{.md.newdevice} = "$result"
ENV{.md.newdevice}!="", RUN+="BINDIR/mdadm --manage $env{DEVNAME} --cluster-confirm $env{RAID_DISK}:$env{.md.newdevice}"
ENV{.md.newdevice}=="", RUN+="BINDIR/mdadm --manage $env{DEVNAME} --cluster-confirm $env{RAID_DISK}:missing"
LABEL="clustermd_end"
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/mirrors_git_kernel_org/pub_scm_utils_mdadm_mdadm.git
git@gitee.com:mirrors_git_kernel_org/pub_scm_utils_mdadm_mdadm.git
mirrors_git_kernel_org
pub_scm_utils_mdadm_mdadm
pub_scm_utils_mdadm_mdadm
master

搜索帮助