Whamcloud - gitweb
LU-9405 utils: remove device path parsing from mount.lustre 09/26909/3
authorJohn L. Hammond <john.hammond@intel.com>
Mon, 1 May 2017 21:54:16 +0000 (16:54 -0500)
committerOleg Drokin <oleg.drokin@intel.com>
Tue, 24 Oct 2017 07:18:22 +0000 (07:18 +0000)
commit97671436c5284d955241b5bb9c79d415aec5792d
treef77f1eb75115d05b62d491d24d7716b3ddfaabaa
parenta3f734db9b60c4f574ce104e4f03418d53a00215
LU-9405 utils: remove device path parsing from mount.lustre

In mount_utils_ldiskfs.c remove code that analyzes the device path
(/dev/mdXX, /dev/mdXXpX, /dev/mapper/XXX, /dev/loopX ...) to determine
the device type and replace with use of stat(). Locate the device's
sysfs directory using the /sys/dev/block/<major>:<minor> symlink
rather than globbing. Rename set_blockdev_tunables() to
tune_block_dev() and break into subfunctions to handle setting
md/stripe_cache_size, queue/max_sectors_kb, and queue/scheduler.

Signed-off-by: John L. Hammond <john.hammond@intel.com>
Change-Id: Ibd272bdf2e76bdec4c207c29dff76a96a65ea333
Reviewed-on: https://review.whamcloud.com/26909
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Dmitry Eremin <dmitry.eremin@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
lustre/utils/libmount_utils_ldiskfs.c