Whamcloud - gitweb
LU-12361 lov: fix wrong calculated length for fiemap
[fs/lustre-release.git] / lustre / tests / sanity.sh
index 6522197..bac8c63 100755 (executable)
@@ -21163,6 +21163,15 @@ test_813() {
 }
 run_test 813 "File heat verfication"
 
+test_814()
+{
+       dd of=$DIR/$tfile seek=128 bs=1k < /dev/null
+       echo -n y >> $DIR/$tfile
+       cp --sparse=always $DIR/$tfile $DIR/${tfile}.cp || error "copy failed"
+       diff $DIR/$tfile $DIR/${tfile}.cp || error "files should be same"
+}
+run_test 814 "sparse cp works as expected (LU-12361)"
+
 #
 # tests that do cleanup/setup should be run at the end
 #