Whamcloud - gitweb
LU-17550 lov: check for empty layout on DIO
[fs/lustre-release.git] / lustre / tests / sanity-pfl.sh
index cc78292..7544f3e 100755 (executable)
@@ -2565,6 +2565,8 @@ test_26a() {
        $LFS setstripe -E 1m -S 1M -c 1 $DIR/$tfile
        dd if=/dev/urandom bs=1M count=10 >> $DIR/$tfile
        [ $? != 0 ] || error "append must return an error"
+       dd if=/dev/urandom bs=1M count=10 oflag=direct >> $DIR/$tfile
+       [ $? != 0 ] || error "append must return an error"
 }
 run_test 26a "Append to not-existent component"
 
@@ -2573,6 +2575,8 @@ test_26b() {
        dd if=/dev/urandom bs=1M count=1 > $DIR/$tfile
        dd if=/dev/urandom bs=1M count=1 >> $DIR/$tfile
        [ $? != 0 ] || error "append must return an error"
+       dd if=/dev/urandom bs=1M count=1 oflag=direct >> $DIR/$tfile
+       [ $? != 0 ] || error "append must return an error"
 }
 run_test 26b "Append to not-existend component, file size is unknown"
 
@@ -2580,6 +2584,8 @@ test_26c() {
        $LFS setstripe -E 1m -S 1M -c 1 $DIR/$tfile
        dd if=/dev/urandom bs=2M count=1 >> $DIR/$tfile
        [ $? != 0 ] || error "append must return an error"
+       dd if=/dev/urandom bs=2M count=1 oflag=direct >> $DIR/$tfile
+       [ $? != 0 ] || error "append must return an error"
 }
 run_test 26c "Append to not-existend component, crossing the component border"