Skip to content

Commit

Permalink
udev: import filesystem metadata for fioX
Browse files Browse the repository at this point in the history
LVM auto activation is triggered by udev discovering the LVM PVs and
populating ID_FS_TYPE.  60-persistent-fio.rules already runs blkid on
partitions on the fioX device to create /dev/disk/by-uuid symlinks.
Add an import of filesystem metadata on the fioX device using udev's
blkid builtin.

Fixes RemixVSL#55
  • Loading branch information
mx-shift committed Oct 22, 2022
1 parent 944be2c commit 08f7e3f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tools/udev/rules.d/60-persistent-fio.rules
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ ENV{DEVTYPE}=="partition", \
IMPORT{parent}="ID_F[!S]*", IMPORT{parent}="ID_F", \
IMPORT{parent}="ID_FS[!_]*", IMPORT{parent}="ID_FS"

# probe filesystem metadata of disks
IMPORT{builtin}="blkid"

# by-id
KERNEL=="fio[a-z]", PROGRAM="/usr/bin/fio-status --field iom.format_uuid /dev/%k", SYMLINK+="disk/by-id/fio-%c"
KERNEL=="fio[a-z][0-9]*", ENV{DEVTYPE}=="partition", PROGRAM="/usr/bin/fio-status --field iom.format_uuid /dev/%P", SYMLINK+="disk/by-id/fio-%c-part%n"
Expand Down

0 comments on commit 08f7e3f

Please sign in to comment.