diff options
author | SeongJae Park <sj38.park@gmail.com> | 2024-03-09 12:44:08 -0800 |
---|---|---|
committer | SeongJae Park <sj38.park@gmail.com> | 2024-03-09 12:44:08 -0800 |
commit | a296f06c2506f932ce309770a78f8c638e45ec3b (patch) | |
tree | 2f9de95be84deedc2b93ea6fc3a406a366759482 | |
parent | c79c993a235000b4bef074520d12324ac569e5f2 (diff) | |
download | damo-a296f06c2506f932ce309770a78f8c638e45ec3b.tar.gz |
_damon_sysfs/update_supported_features(): Remove quota goal from default feature check kdamonds
Staging feature check kdamonds fail due to goals, which is not supported
on old kernels. Don't create it.
Signed-off-by: SeongJae Park <sj38.park@gmail.com>
-rw-r--r-- | _damon_sysfs.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/_damon_sysfs.py b/_damon_sysfs.py index 63825e14..2029362f 100644 --- a/_damon_sysfs.py +++ b/_damon_sysfs.py @@ -798,8 +798,7 @@ def update_supported_features(): schemes=[ _damon.Damos( access_pattern=None, action='stat', - quotas=_damon.DamosQuotas( - goals=[_damon.DamosQuotaGoal()]), + quotas=_damon.DamosQuotas(), watermarks=None, filters=[], stats=None)])])] err = stage_kdamonds(kdamonds_for_feature_check) if err is not None: @@ -839,10 +838,10 @@ def update_supported_features(): 'effective_bytes')): feature_supports['schemes_quota_effective_bytes'] = True - if os.path.isfile(os.path.join(scheme_dir_of(0, 0, 0), 'quotas', 'goals', - 'target_metric')): - feature_supports['schemes_quota_goal_metric'] = True - feature_supports['schemes_quota_goal_some_psi'] = True + if os.path.isfile(os.path.join( + scheme_dir_of(0, 0, 0), 'quotas', 'goals', 'target_metric')): + feature_supports['schemes_quota_goal_metric'] = True + feature_supports['schemes_quota_goal_some_psi'] = True avail_ops, err = _avail_ops() if err == None: |