Whamcloud - gitweb
LU-18076 lfs: get client UUID by "lfs getname -u" 37/56437/7
authorEmoly Liu <emoly@whamcloud.com>
Thu, 10 Oct 2024 14:43:28 +0000 (22:43 +0800)
committerOleg Drokin <green@whamcloud.com>
Wed, 22 Jan 2025 18:41:49 +0000 (18:41 +0000)
commitfdec92fb6ccd205f094aae8058ccba3e5a18e5ec
treecde4c50e8c4f9c4e46407b3dcb53e17c69d98ce0
parent308c7a553809695d475bbb640ffe1c86efd9719f
LU-18076 lfs: get client UUID by "lfs getname -u"

This patch is to get client UUID from the mountpoint by command
"lfs getname -u" directly. Functions llapi_file_get_type_uuid()
and llapi_file_fget_type_uuid() are added, and the man page
lfs-getname.1 is updated as well.
Also, function get_client_uuid() in test-framework.sh is modified
to verify this patch.

Signed-off-by: Emoly Liu <emoly@whamcloud.com>
Change-Id: I8f7db964adf209e19c29a240608881b38e068ded
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/56437
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Zhenyu Xu <bobijam@hotmail.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/doc/lfs-getname.1
lustre/include/lustre/lustreapi.h
lustre/include/uapi/linux/lustre/lustre_ioctl.h
lustre/llite/llite_internal.h
lustre/llite/llite_lib.c
lustre/tests/test-framework.sh
lustre/utils/lfs.c
lustre/utils/liblustreapi.c