Whamcloud - gitweb
LU-12387 utils: Read existing ldd data in l_tunedisk 66/35066/5
authorChris Horn <hornc@cray.com>
Tue, 4 Jun 2019 19:34:01 +0000 (14:34 -0500)
committerOleg Drokin <green@whamcloud.com>
Sun, 16 Jun 2019 03:23:31 +0000 (03:23 +0000)
commit9cb4f810164efa5f058dc7605fb1835ea51b0a92
treec72beeede12147b4685dfb4dd4a551409b68cd6a
parent54adf45f2c73e542a2fcf3125781de791fac9c56
LU-12387 utils: Read existing ldd data in l_tunedisk

Read the lustre_disk_data from the device passed to l_tunedisk, so
we can determine whether the device is an MGT or MDT and thus skip
the tuning of the device.

Fixes: 892280742a2b ("LU-9551 utils: add l_tunedisk to fix disk tunings")
Fixes: 2f8d7b4679de ("LU-11736 utils: don't set max_sectors_kb on MDT/MGT")
Cray-bug-id: LUS-7358
Signed-off-by: Chris Horn <hornc@cray.com>
Change-Id: I193fe008d5777b0e83f2be9a500eaffb1d3ca615
Reviewed-on: https://review.whamcloud.com/35066
Tested-by: Jenkins
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Gu Zheng <gzheng@ddn.com>
Reviewed-by: Nathaniel Clark <nclark@whamcloud.com>
lustre/utils/l_tunedisk.c