the failure, cpuset_base_ops 37 TFAIL: cpuset.cpus: Test result - Expected string - "0"
are from testing the $/bin/echo "0-" > "$CPUSET/1/cpuset.cpus" and expecting "0" but got invalid parameter on cpuset_base_ops_testset.sh
.... else base_op_test "$CPUSET/1/cpuset.cpus" "0-" "0" fi
and the behavior is changed after the kernel patch "cpuset: Add new v2 cpuset.sched.partition flag" commit#ee8dde0cd2ce78b62d16aec1c29960b64380e634
+ if (cs->partition_root_state) { + /* Cpumask of a partition root cannot be empty */ + if (cpumask_empty(trialcs->cpus_allowed)) + return -EINVAL; + if (update_parent_subparts_cpumask(cs, partcmd_update, + trialcs->cpus_allowed, &tmp) < 0) + return -EINVAL; + }
which chcek the "0-" and returned -EINVAL;
the failure,
cpuset_base_ops 37 TFAIL: cpuset.cpus: Test result - Expected string - "0"
are from testing the 1/cpuset. cpus" and expecting "0" but got invalid parameter base_ops_ testset. sh
$/bin/echo "0-" > "$CPUSET/
on cpuset_
.... 1/cpuset. cpus" "0-" "0"
else
base_op_test "$CPUSET/
fi
and the behavior is changed after the kernel patch "cpuset: Add new v2 cpuset. sched.partition flag" ee8dde0cd2ce78b 62d16aec1c29960 b64380e634
commit#
+ if (cs->partition_ root_state) { empty(trialcs- >cpus_allowed) ) parent_ subparts_ cpumask( cs, partcmd_update, >cpus_allowed, &tmp) < 0)
+ /* Cpumask of a partition root cannot be empty */
+ if (cpumask_
+ return -EINVAL;
+ if (update_
+ trialcs-
+ return -EINVAL;
+ }
which chcek the "0-" and returned -EINVAL;