Whamcloud - gitweb
LU-18972 lustreapi: Implement llapi_lmv_get_uuids 07/59107/4
authorsolanki <praveen.solanki@gmail.com>
Mon, 5 May 2025 23:27:57 +0000 (19:27 -0400)
committerOleg Drokin <green@whamcloud.com>
Wed, 21 May 2025 05:18:36 +0000 (05:18 +0000)
Provide missing implementation for declared method in lustreapi

Fixes: 322968acf1 ("LU-819 utils: Fix lfs getstripe -M")
Test-Parameters: trivial
Signed-off-by: Praveen Singh Solanki <praveen.solanki@gmail.com>
Change-Id: I561c875281de9bfc26cc61cf07631ac7d0740163
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/59107
Reviewed-by: Sonia Sharma <sonia.sh.sharma@oracle.com>
Reviewed-by: Aurelien Degremont <adegremont@nvidia.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
lustre/utils/liblustreapi.c

index 527f084..ada7bfe 100644 (file)
@@ -2360,6 +2360,11 @@ free_param:
        return rc;
 }
 
+int llapi_lmv_get_uuids(int fd, struct obd_uuid *uuidp, int *mdt_count)
+{
+       return llapi_get_target_uuids(fd, uuidp, NULL, mdt_count, LMV_TYPE);
+}
+
 int llapi_lov_get_uuids(int fd, struct obd_uuid *uuidp, int *ost_count)
 {
        return llapi_get_target_uuids(fd, uuidp, NULL, ost_count, LOV_TYPE);