[fix] Enhance cache cleaning policy configuration

- Add set_param_cleaning_policy method for ACP and ALRU policies
- Add validation for wake-up and flush-max-buffers parameters
- Improve cache configuration to handle different cleaning policies
- Fix casctl stop with flush option for proper shutdown
This commit is contained in:
2025-04-16 11:05:24 +08:00
committed by Netlops
parent cbcb8bab74
commit 09764e0e15
2 changed files with 48 additions and 5 deletions

View File

@@ -7,4 +7,4 @@
# systemd-shutdown plugin to stop all remaining Open CAS devices
/usr/bin/echo "Open CAS cleanup handler" > /dev/kmsg
/sbin/casctl stop
/sbin/casctl stop --flush