Whamcloud - gitweb
LU-9657 llapi: check if the file layout is composite
[fs/lustre-release.git] / lustre / utils / liblustreapi_layout.c
index dbf1369..0168de2 100644 (file)
@@ -2012,3 +2012,16 @@ int llapi_layout_file_comp_set(const char *path,
        errno = EOPNOTSUPP;
        return -1;
 }
+
+/**
+ * Check if the file layout is composite.
+ *
+ * \param[in] layout   the file layout to check
+ *
+ * \retval true                composite
+ * \retval false       not composite
+ */
+bool llapi_layout_is_composite(struct llapi_layout *layout)
+{
+       return layout->llot_is_composite;
+}