Whamcloud - gitweb
LU-13910 mdt: 0 for success in mdt_path_current() 88/39688/6
authorEmoly Liu <emoly@whamcloud.com>
Thu, 20 Aug 2020 04:09:19 +0000 (12:09 +0800)
committerOleg Drokin <green@whamcloud.com>
Tue, 1 Sep 2020 03:44:50 +0000 (03:44 +0000)
commit6a3599a9389da07ac435d94873376c9f86edea9d
tree4d5f4715c2774c3d97bb3aea5454700988bfac12
parentbfb5fe8b18423f6058b5940dccd5132929e3b25d
LU-13910 mdt: 0 for success in mdt_path_current()

0 should be returned if no error is found in mdt_path_current(),
otherwise, the non-zero value will be treated as an error in
mdc_ioc_fid2path() and null will be returned by "lfs fid2path".

sanity.sh test_226c is added to verify this patch.

Signed-off-by: Emoly Liu <emoly@whamcloud.com>
Change-Id: I1c10b023da9bbbb908dfb691fcea6e84ced67a8d
Reviewed-on: https://review.whamcloud.com/39688
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/mdt/mdt_handler.c
lustre/tests/sanity.sh