Whamcloud - gitweb
LU-1039 ptlrpc: handle bulk IO errors correctly.
[fs/lustre-release.git] / lustre / tests / sanity.sh
index 47330e6..bc1c1b9 100644 (file)
@@ -8513,6 +8513,26 @@ test_221() {
 }
 run_test 221 "make sure fault and truncate race to not cause OOM"
 
+test_222a() { # LU-1039, MRP-303
+        #define OBD_FAIL_PTLRPC_CLIENT_BULK_CB   0x508
+        $LCTL set_param fail_loc=0x508
+        dd if=/dev/zero of=$DIR/$tfile bs=4096 count=1 conv=fsync
+        $LCTL set_param fail_loc=0
+        df $DIR
+}
+run_test 222a "Don't panic on bulk IO failure"
+
+test_222b() { # LU-1039, MRP-303
+        dd if=/dev/zero of=$DIR/$tfile bs=4096 count=1
+        cancel_lru_locks osc
+        #define OBD_FAIL_PTLRPC_CLIENT_BULK_CB2   0x515
+        $LCTL set_param fail_loc=0x515
+        dd of=/dev/null if=$DIR/$tfile bs=4096 count=1
+        $LCTL set_param fail_loc=0
+        df $DIR
+}
+run_test 222b "Don't panic on bulk IO failure"
+
 #
 # tests that do cleanup/setup should be run at the end
 #