mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-18 17:54:13 +08:00
262bf54144
When an AoE device is detected, the kernel is informed, and a new block device is created. If the device is unused, the block device corresponding to remote device that is no longer available may be removed from the system by telling the aoe driver to "flush" its list of devices. Without this patch, software like GPFS and LVM may attempt to read from AoE devices that were discovered earlier but are no longer present, blocking until the I/O attempt times out. Signed-off-by: Ed L. Cashin <ecashin@coraid.com> Cc: Greg KH <greg@kroah.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
27 lines
1.1 KiB
Plaintext
27 lines
1.1 KiB
Plaintext
# These rules tell udev what device nodes to create for aoe support.
|
|
# They may be installed along the following lines. Check the section
|
|
# 8 udev manpage to see whether your udev supports SUBSYSTEM, and
|
|
# whether it uses one or two equal signs for SUBSYSTEM and KERNEL.
|
|
#
|
|
# ecashin@makki ~$ su
|
|
# Password:
|
|
# bash# find /etc -type f -name udev.conf
|
|
# /etc/udev/udev.conf
|
|
# bash# grep udev_rules= /etc/udev/udev.conf
|
|
# udev_rules="/etc/udev/rules.d/"
|
|
# bash# ls /etc/udev/rules.d/
|
|
# 10-wacom.rules 50-udev.rules
|
|
# bash# cp /path/to/linux-2.6.xx/Documentation/aoe/udev.txt \
|
|
# /etc/udev/rules.d/60-aoe.rules
|
|
#
|
|
|
|
# aoe char devices
|
|
SUBSYSTEM=="aoe", KERNEL=="discover", NAME="etherd/%k", GROUP="disk", MODE="0220"
|
|
SUBSYSTEM=="aoe", KERNEL=="err", NAME="etherd/%k", GROUP="disk", MODE="0440"
|
|
SUBSYSTEM=="aoe", KERNEL=="interfaces", NAME="etherd/%k", GROUP="disk", MODE="0220"
|
|
SUBSYSTEM=="aoe", KERNEL=="revalidate", NAME="etherd/%k", GROUP="disk", MODE="0220"
|
|
SUBSYSTEM=="aoe", KERNEL=="flush", NAME="etherd/%k", GROUP="disk", MODE="0220"
|
|
|
|
# aoe block devices
|
|
KERNEL=="etherd*", NAME="%k", GROUP="disk"
|