Striped directory layout may be broken, if some stripe FID is insane,
return -ENODEV.
Lustre-change: https://review.whamcloud.com/38560
Lustre-commit:
698a496aac51e11791717a9cbd0a86b3525f4557
Signed-off-by: Lai Siyao <lai.siyao@whamcloud.com>
Change-Id: I7ed8c7c561e34625e2cb29bfd14bc0ecf3fce46c
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Hongchao Zhang <hongchao@whamcloud.com>
Signed-off-by: Minh Diep <mdiep@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/39600
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
*fid = oinfo->lmo_fid;
if (mds != NULL)
*mds = oinfo->lmo_mds;
+ /* check stripe FID is sane */
+ if (!fid_is_sane(&oinfo->lmo_fid))
+ return ERR_PTR(-ENODEV);
tgt = lmv_get_target(lmv, oinfo->lmo_mds, NULL);