[LTP] [PATCH] syscalls/acct02.c: Read threshold from /proc/sys/kernel/acct

Cyril Hrubis chrubis@suse.cz
Mon Jul 15 18:00:10 CEST 2019


Hi!
> Don't use hardcoded threshold(default 4%) to check free space
> because it can be changed by writing "/proc/sys/kernel/acct"
> or using sysctl.

Good catch, I missed the sysctl API since I haven't realized that the
proc handlers are all stuffed in a different file in kernel/sysctl.c.

What about we as well temporarily lower the value if needed while the
test is running?

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list