Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #11411 from dachary/wip-17245-jewel
jewel: tests: scsi_debug fails /dev/disk/by-partuuid Reviewed-by: Loic Dachary <ldachary@redhat.com>
- Loading branch information
Showing
2 changed files
with
33 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# | ||
# Make sure /dev/disk/by-partuuid is populated | ||
# | ||
|
||
# forward scsi device event to corresponding block device | ||
ACTION=="change", SUBSYSTEM=="scsi", ENV{DEVTYPE}=="scsi_device", TEST=="block", ATTR{block/*/uevent}="change" | ||
|
||
ACTION=="remove", GOTO="persistent_storage_end_two" | ||
|
||
SUBSYSTEM!="block", GOTO="persistent_storage_end_two" | ||
|
||
# skip rules for inappropriate block devices | ||
KERNEL=="fd*|mtd*|nbd*|gnbd*|btibm*|md*", GOTO="persistent_storage_end_two" | ||
|
||
# ignore partitions that span the entire disk | ||
TEST=="whole_disk", GOTO="persistent_storage_end_two" | ||
|
||
# for partitions import parent information | ||
ENV{DEVTYPE}=="partition", IMPORT{parent}="ID_*" | ||
|
||
# skip unpartitioned removable media devices from drivers which do not send "change" events | ||
ENV{DEVTYPE}=="disk", KERNEL!="sd*|sr*", ATTR{removable}=="1", GOTO="persistent_storage_end_two" | ||
|
||
# probe filesystem metadata of disks | ||
KERNEL!="sr*", IMPORT{program}="/sbin/blkid -o udev -p $tempnode" | ||
|
||
ENV{ID_PART_ENTRY_SCHEME}=="gpt", ENV{ID_PART_ENTRY_UUID}=="?*", SYMLINK+="disk/by-partuuid/$env{ID_PART_ENTRY_UUID}" | ||
|
||
LABEL="persistent_storage_end_two" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters