+static inline bool llapi_pool_name_is_valid(const char **pool_name)
+{
+ const char *ptr;
+
+ if (*pool_name == NULL)
+ return false;
+
+ /* Strip off any 'fsname.' portion. */
+ ptr = strchr(*pool_name, '.');
+ if (ptr != NULL)
+ *pool_name = ptr + 1;
+
+ if (strlen(*pool_name) > LOV_MAXPOOLNAME)
+ return false;
+
+ return true;
+}
+