return ret;
}
-bool is_valid_storage_type(const char *type)
+bool lxc_is_valid_storage_type(const char *type)
{
if (strcmp(type, "dir") == 0 ||
strcmp(type, "btrfs") == 0 ||
__hidden extern bool unpriv_snap_allowed(struct lxc_storage *b, const char *t, bool snap,
bool maybesnap);
__hidden extern uint64_t get_fssize(char *s);
-__hidden extern bool is_valid_storage_type(const char *type);
+extern bool lxc_is_valid_storage_type(const char *type);
__hidden extern int storage_destroy_wrapper(void *data);
#endif /* __LXC_STORAGE_UTILS_H */
/* Final check whether the user gave use a valid bdev type. */
if (strncmp(my_args.bdevtype, "best", strlen(my_args.bdevtype)) != 0 &&
strncmp(my_args.bdevtype, "_unset", strlen(my_args.bdevtype)) != 0 &&
- !is_valid_storage_type(my_args.bdevtype)) {
+ !lxc_is_valid_storage_type(my_args.bdevtype)) {
ERROR("%s is not a valid backing storage type", my_args.bdevtype);
exit(EXIT_FAILURE);
}