diff options
author | SeongJae Park <sj38.park@gmail.com> | 2024-03-17 11:24:25 -0700 |
---|---|---|
committer | SeongJae Park <sj38.park@gmail.com> | 2024-03-17 11:24:25 -0700 |
commit | 17604a33069683841a16e1258510a3163dcbad9d (patch) | |
tree | ee752086b46d83f32186362a6a8137f82f8e94c3 | |
parent | b88b0032633faffae17882569f54d9bfafc92bb3 (diff) | |
download | damo-17604a33069683841a16e1258510a3163dcbad9d.tar.gz |
_damon_dbgfs: Use interactive kdamonds writer from stage_kdamonds()
wops_for_*() functions are easier to test, but hard to debug where it
fails, and difficult to deal with partial failures of i/o. Use
interactive version instead.
Signed-off-by: SeongJae Park <sj38.park@gmail.com>
-rw-r--r-- | _damon_dbgfs.py | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/_damon_dbgfs.py b/_damon_dbgfs.py index c497ba8e..0b9b1151 100644 --- a/_damon_dbgfs.py +++ b/_damon_dbgfs.py @@ -271,11 +271,7 @@ def stage_kdamonds(kdamonds): if _damon.any_kdamond_running(): return 'DAMON debugfs doesn\'t support online staging' - try: - wops = wops_for_kdamonds(kdamonds) - except Exception as e: - return 'staging kdamond failed (%s)' % e - return _damo_fs.write_files(wops) + return write_kdamonds(get_damon_dir(), kdamonds) # for current_kdamonds |