Whamcloud - gitweb
LU-9799 mount: Call read_ldd with initialized mount type 81/28581/2
authorNathaniel Clark <nathaniel.l.clark@intel.com>
Thu, 10 Aug 2017 14:20:04 +0000 (10:20 -0400)
committerJohn L. Hammond <john.hammond@intel.com>
Fri, 18 Aug 2017 18:09:28 +0000 (18:09 +0000)
commitf869b9da902fc305bfab8e902d0c1202aec6a7bc
treed2867b5d592051eb157dc3917c3bf1cd50617207
parent6186929a52c568614169f9604fc3d4d71273b59c
LU-9799 mount: Call read_ldd with initialized mount type

When re-reading the ldd when doing relabel, ensure the correct mount
type is used for the read. Otherwise ldiskfs complains:

   mount.lustre FATAL: unhandled/unloaded fs type 0 'ext3'

and ZFS complains:

   e2label: No such file or directory while trying to open MGS/MGT
   Couldn't find valid filesystem superblock.

Lustre-change: https://review.whamcloud.com/28456
Lustre-commit: 0108281c65545df169faaa0ce0690fb021680643

Signed-off-by: Nathaniel Clark <nathaniel.l.clark@intel.com>
Change-Id: Ife53cff948d545c306e99e4b023989245a1ac3f7
Reviewed-by: Fan Yong <fan.yong@intel.com>
Reviewed-by: Hongchao Zhang <hongchao.zhang@intel.com>
Signed-off-by: Minh Diep <minh.diep@intel.com>
Reviewed-on: https://review.whamcloud.com/28581
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
lustre/utils/mount_lustre.c