mirror of
https://github.com/ibm-s390-linux/s390-tools.git
synced 2026-08-05 02:14:52 +00:00
The udev rule for SCSI devices is still using the WAIT_FOR keyword, which was used to make sure that a file does in fact exist before any rule is applied. That keyword, however, was removed with systemd-220 and is therefore no longer valid, which in turn leads to errors on newer systems. Use the TEST keyword instead to check the existence of a file before we apply any rules. Signed-off-by: Jan Höppner <hoeppner@linux.ibm.com>
19 lines
561 B
Plaintext
19 lines
561 B
Plaintext
#
|
|
# Rules to set an increased default max readahead size
|
|
# This file should be installed in /etc/udev/rules.d
|
|
#
|
|
|
|
SUBSYSTEM!="block", GOTO="ra_end"
|
|
|
|
ACTION!="add", GOTO="ra_change"
|
|
# on device add set initial readahead to 512 (instead of in kernel 128)
|
|
KERNEL=="sd*[!0-9]", TEST=="queue/read_ahead_kb", ATTR{queue/read_ahead_kb}="512"
|
|
|
|
LABEL="ra_change"
|
|
|
|
ACTION!="change", GOTO="ra_end"
|
|
# on device change set initial readahead to 512 (instead of in kernel 128)
|
|
KERNEL=="dasd*[!0-9]", TEST=="queue/read_ahead_kb", ATTR{queue/read_ahead_kb}="512"
|
|
|
|
LABEL="ra_end"
|