suboff = lio->lis_cached_suboff + offset - lio->lis_cached_off;
} else {
entry = lov_io_layout_at(lio, offset);
+ if (entry < 0)
+ return(-ENODATA);
stripe = lov_stripe_number(loo->lo_lsm, entry, offset);
rc = lov_stripe_offset(loo->lo_lsm, entry, offset, stripe,
}
run_test 25 "Verify old lov stripe API with PFL files"
+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"
+}
+run_test 26a "Append to not-existent component"
+
+test_26b() {
+ $LFS setstripe -E 1m -S 1M -c 1 $DIR/$tfile
+ 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"
+}
+run_test 26b "Append to not-existend component, file size is unknown"
+
+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"
+}
+run_test 26c "Append to not-existend component, crossing the component border"
+
export LFS_SETSTRIPE_COMPR_OK="yes"
test_100a() {
(( $MDS1_VERSION >= $(version_code 2.14.0.92) )) ||