]> 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)
committerKarel Zak <kzak@redhat.com>
Tue, 9 Sep 2025 10:18:37 +0000 (12:18 +0200)
commitb3965e4cfa1adf7b988bc80a8e613b9501ccd4fa
tree91dea92f03a14ed68de3d9ed20b03d4008bfe786
parentfea858d9df5de8f1d6dd7087c827e75775da75bb
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>
(cherry picked from commit e4514111ebb6df5f22a0769a9dfb2338b9c6c81a)
sys-utils/zramctl.c