aboutsummaryrefslogtreecommitdiffstats
path: root/sbdd.c
diff options
context:
space:
mode:
authorJoursoir <chat@joursoir.net>2023-01-16 03:46:40 +0400
committerJoursoir <chat@joursoir.net>2023-01-16 13:33:18 +0400
commit314f912f689c91b3adb16cbe8faa43093b344dba (patch)
tree0cc323aedfb00fe6899e43fb49408ea6bb2a8680 /sbdd.c
parentd93952a43b90635e052abfc808d5966ff750f18a (diff)
downloadsbdd-raid0.tar.gz
sbdd-raid0.tar.bz2
sbdd-raid0.zip
add stub-handling for unsucceseed I/Oraid0
Diffstat (limited to 'sbdd.c')
-rw-r--r--sbdd.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/sbdd.c b/sbdd.c
index 86ec402..f412ff2 100644
--- a/sbdd.c
+++ b/sbdd.c
@@ -59,6 +59,11 @@ static void io_end_bio(struct bio *bio)
pr_debug("I/O operation is completed\n");
+ if (bio->bi_status != BLK_STS_OK) {
+ pr_err("oops, error during I/O operation...");
+ /* TODO: handle errors */
+ }
+
io_bio->original_bio->bi_status = bio->bi_status;
bio_put(bio);