}
run_test 116 "big size MDT support"
+test_117() {
+ setup
+ do_facet ost1 "$LCTL set_param ost.OSS.ost_io.nrs_policies=fifo"
+ do_facet ost1 "$LCTL get_param -n ost.OSS.ost_io.nrs_tbf_rule" &&
+ error "get_param should fail"
+ cleanup || error "cleanup failed with rc $?"
+}
+run_test 117 "lctl get_param return errors properly"
+
test_122() {
[ $MDSCOUNT -lt 2 ] && skip "needs >= 2 MDTs" && return
[[ $(lustre_version_code ost1) -ge $(version_code 2.11.53) ]] ||
nodemap_test_setup
trap nodemap_test_cleanup EXIT
- do_nodes $(comma_list $(all_server_nodes)) $LCTL get_param -R nodemap ||
- error "proc readable file read failed"
+ do_nodes $(comma_list $(all_server_nodes)) $LCTL get_param -R nodemap
nodemap_test_cleanup
}
find $proc_dirs -exec cat '{}' \; &> /dev/null
# Second verifying readability.
- $LCTL get_param -R '*' &> /dev/null || error "proc file read failed"
+ $LCTL get_param -R '*' &> /dev/null
# Verifing writability with badarea_io.
find $proc_dirs \
switch (mode) {
case GET_PARAM:
/* Read the contents of file to stdout */
- if (S_ISREG(st.st_mode))
- read_param(paths.gl_pathv[i], param_name, popt);
+ if (S_ISREG(st.st_mode)) {
+ rc2 = read_param(paths.gl_pathv[i], param_name,
+ popt);
+ if (rc2 < 0 && rc == 0)
+ rc = rc2;
+ }
break;
case SET_PARAM:
if (S_ISREG(st.st_mode)) {