From 32962842fcc004270acb48d571f46f5f1a5f2d1f Mon Sep 17 00:00:00 2001
From: Ali Mohammed <ali.mohammed@hpe.com>
Date: Mon, 13 Sep 2021 18:51:14 +0200
Subject: [PATCH] copy and cast size_t and uint64_t back and forth for dist
 irregular layout offsets and lengths

---
 attributes/maestro-schema.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/attributes/maestro-schema.c b/attributes/maestro-schema.c
index 5eaa722c..3cf0543d 100644
--- a/attributes/maestro-schema.c
+++ b/attributes/maestro-schema.c
@@ -2713,6 +2713,11 @@ mstro_attribute_dict_set_kventry(mstro_attribute_dict dict,
                                       MSTRO_CDO_ATTR_VALUE_timestamp, &ts, true);
     }
     case MSTRO__POOL__AVAL__VAL_MMB_LAYOUT: {
+      /**FIXME support other mmbLayout types */
+      if(aval->mmblayout->type != MSTRO__POOL__MMBLAYOUT__MMB_LAYOUT_TYPE__MMB_IRREGULAR){
+        ERR("Unsupported mmbLayout type \n");
+        return MSTRO_UNIMPL;
+      }
       mmbLayout *dist_layout;
       mstro_attribute_pool_aval_to_mmbLayout(aval->mmblayout, &dist_layout);
 
-- 
GitLab