]> git.ipfire.org Git - thirdparty/util-linux.git/commit
zramctl: ignore ENOENT when setting max_comp_streams
authorJiang XueQian <jiangxueqian@gmail.com>
Sat, 30 Aug 2025 09:02:59 +0000 (17:02 +0800)
committerJiang XueQian <jiangxueqian@gmail.com>
Sat, 30 Aug 2025 09:02:59 +0000 (17:02 +0800)
commite4514111ebb6df5f22a0769a9dfb2338b9c6c81a
treec70b1b074228ef02c66546b0e156ba2b56b34956
parent82ab7a2b175874c8af845fcbd376ac33b78e30be
zramctl: ignore ENOENT when setting max_comp_streams

The `max_comp_streams` attribute of zram devices has been deprecated and
all writes were silently ignored by the kernel since 2016. It was
finally removed in 6.15, causing zramctl to fail on ENOENT, when it
should just ignore the error.

Signed-off-by: Jiang XueQian <jiangxueqian@gmail.com>
sys-utils/zramctl.c