Whamcloud - gitweb
LU-13732 lfs: fid2path should match the root path correctly 25/39225/6
authorEmoly Liu <emoly@whamcloud.com>
Wed, 1 Jul 2020 10:07:00 +0000 (18:07 +0800)
committerOleg Drokin <green@whamcloud.com>
Mon, 20 Jul 2020 05:21:36 +0000 (05:21 +0000)
commit08892438473f3188de3dc7f76b0ce433eaef4367
tree23c24be13b1c7b8c976fb59e8b45679caead0b6a
parent45c26bc11b7b1ec6b6b4773fb9a40e0a655f7d33
LU-13732 lfs: fid2path should match the root path correctly

This patch is to match the root path in function get_root_path()
correctly. For example, if the mount point is /mnt/lustre, the
following root path formats are acceptable:
- /mnt/lustre
- /mnt/lustre/*

sanity.sh test_154A/247d are modified to verify this patch.

Signed-off-by: Emoly Liu <emoly@whamcloud.com>
Change-Id: If705dd341b273d462aeba280fa27d5608b5f3b7c
Reviewed-on: https://review.whamcloud.com/39225
Tested-by: jenkins <devops@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/tests/sanity.sh
lustre/utils/lfs.c
lustre/utils/liblustreapi.c