Index: uspace/srv/bd/hr/raid0.c
===================================================================
--- uspace/srv/bd/hr/raid0.c	(revision 9ee9c60b06ad90eda6c61e4ccb3c8909249290c5)
+++ uspace/srv/bd/hr/raid0.c	(revision b5c95da560221be803f7b14da80c306b21f6c74f)
@@ -83,5 +83,6 @@
 	HR_DEBUG("%s()", __func__);
 
-	assert(new_volume->level == HR_LVL_0);
+	if (new_volume->level != HR_LVL_0)
+		return EINVAL;
 
 	if (new_volume->extent_no < 2) {
@@ -111,5 +112,6 @@
 	HR_DEBUG("%s()", __func__);
 
-	assert(vol->level == HR_LVL_0);
+	if (vol->level != HR_LVL_0)
+		return EINVAL;
 
 	uint64_t total_blkno = vol->truncated_blkno * vol->extent_no;
Index: uspace/srv/bd/hr/raid1.c
===================================================================
--- uspace/srv/bd/hr/raid1.c	(revision 9ee9c60b06ad90eda6c61e4ccb3c8909249290c5)
+++ uspace/srv/bd/hr/raid1.c	(revision b5c95da560221be803f7b14da80c306b21f6c74f)
@@ -93,5 +93,6 @@
 	HR_DEBUG("%s()", __func__);
 
-	assert(new_volume->level == HR_LVL_1);
+	if (new_volume->level != HR_LVL_1)
+		return EINVAL;
 
 	if (new_volume->extent_no < 2) {
@@ -127,5 +128,6 @@
 	HR_DEBUG("%s()", __func__);
 
-	assert(vol->level == HR_LVL_1);
+	if (vol->level != HR_LVL_1)
+		return EINVAL;
 
 	vol->data_offset = vol->meta_ops->get_data_offset();
Index: uspace/srv/bd/hr/raid5.c
===================================================================
--- uspace/srv/bd/hr/raid5.c	(revision 9ee9c60b06ad90eda6c61e4ccb3c8909249290c5)
+++ uspace/srv/bd/hr/raid5.c	(revision b5c95da560221be803f7b14da80c306b21f6c74f)
@@ -96,5 +96,6 @@
 	HR_DEBUG("%s()", __func__);
 
-	assert(new_volume->level == HR_LVL_5 || new_volume->level == HR_LVL_4);
+	if (new_volume->level != HR_LVL_5 && new_volume->level != HR_LVL_4)
+		return EINVAL;
 
 	if (new_volume->extent_no < 3) {
@@ -129,5 +130,6 @@
 	HR_DEBUG("%s()", __func__);
 
-	assert(vol->level == HR_LVL_5 || vol->level == HR_LVL_4);
+	if (vol->level != HR_LVL_5 && vol->level != HR_LVL_4)
+		return EINVAL;
 
 	uint64_t total_blkno = vol->truncated_blkno * vol->extent_no;
