Comment 4 for bug 1830359

Revision history for this message
Ivan Hu (ivan.hu) wrote :

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;