Details
-
Bug
-
Resolution: Fixed
-
Minor
-
None
-
3
-
9223372036854775807
Description
mount.lustre parses does some device path parsing to get find the paths of the block device tunables. From my comment on https://review.whamcloud.com/#/c/26399/ from LU-9292:
- I've never though that mount.lustre should be tuning the block devices. That's the responsibility of admins and/or integrators.
- Assuming we do want to do it, this is not a good way to go from partition to the blockdev tunables directory. sysfs is already setup for this and we can avoid easily breakable device path parsing:
major=0x$(stat --format=%t /dev/sdc1) minor=0x$(stat --format=%T /dev/sdc1) ~$ readlink -f /sys/dev/block/$((major)):$((minor))/../queue /sys/devices/pci0000:00/0000:00:1f.2/ata3/host3/target3:0:0/3:0:0:0/block/sdc/queue if [[ -f /sys/dev/block/$((major)):$((minor))/partition ]]; then # Use /sys/dev/block/$((major)):$((minor))/../queue else # Use /sys/dev/block/$((major)):$((minor))/queue fi
Attachments
Issue Links
- is related to
-
LU-9292 mount.lustre doesn't handle partitioned MD arrays correctly
- Resolved