udev-block-add-change: ignore unconnected Network Block Device
"modprobe nbd" shouldn't instantly send 16 zero byte nbd devices to dom0.
This commit is contained in:
parent
929e03bcba
commit
6b3830ba31
@ -119,6 +119,12 @@ if [ "$MAJOR" -eq 7 -a ! -d /sys/$DEVPATH/loop ]; then
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# or unconnected Network Block Device
|
||||
if [ "$MAJOR" -eq 43 -a ! -e /sys/$DEVPATH/pid ]; then
|
||||
xs_remove
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# ... and loop devices from excluded directories
|
||||
if [[ "$NAME" = 'loop'* ]]; then
|
||||
backing_file=$(cat /sys/block/${NAME}/loop/backing_file)
|
||||
|
Loading…
Reference in New Issue
Block a user