Whamcloud - gitweb
LU-16808 lfs: return invalid=-1 if no projid retrieved 16/50916/8
authorBobi Jam <bobijam@whamcloud.com>
Wed, 10 May 2023 15:15:24 +0000 (23:15 +0800)
committerOleg Drokin <green@whamcloud.com>
Tue, 20 Jun 2023 03:43:13 +0000 (03:43 +0000)
commit8d09b3e77744973d10d2029028d7e6f14591bc6d
treee79308e6cb4e26dccf14de168465ce8eecf49d42
parentf47f816a5b1deabc1d501332a1a30af205d22515
LU-16808 lfs: return invalid=-1 if no projid retrieved

lfs find --printf "%LP" returns -1 as invalid projid if a
special file is found while it does not contain projid.

Fix bug where "lfs find --printf %LP" always printed "0".

Fixes: 6b8e97b76c ("LU-10378 utils: add formatted printf to lfs find")
Signed-off-by: Bobi Jam <bobijam@whamcloud.com>
Change-Id: Ic1b474145212e0ce091f97281440816d9a437a4f
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/50916
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Thomas Bertschinger <bertschinger@lanl.gov>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/tests/sanity.sh
lustre/utils/liblustreapi.c