Re: [ANNOUNCE] util-linux v2.42-rc1
Sumanth Korikkar <[email protected]> Tue, 3 Mar 2026 13:51:55 +0100
| Newsgroups | org.kernel.vger.util-linux |
|---|---|
| Message-ID | <[email protected]> |
On Tue, Mar 03, 2026 at 11:08:00AM +0100, Karel Zak wrote: > On Mon, Mar 02, 2026 at 04:59:06PM +0100, Sumanth Korikkar wrote: > > * When --sysroot is used, do not read /sys/firmware/memory > > (used on s390). This makes sure lsmem reads only the memory > > directories inside the given sysroot, so the directory list > > is correct. > > Hi Sumanth, > > Thanks for looking into this. I think your patch is a workaround > though. It bypasses sysmemconfig and memmap_on_memory when --sysroot > is used rather than fixing the root cause. > > The real problem is that --sysroot prefix was not applied to all sysfs > paths. The sysmemconfig handler was never prefixed, and print_summary() > used raw fopen() to read memmap_on_memory, completely ignoring --sysroot. > > I've pushed different solution fix to > https://github.com/util-linux/util-linux/pull/4090 > > This way all sysfs reads go through the prefix, and tests produce > consistent results regardless of the host system. > > Karel > > -- > Karel Zak <[email protected]> > http://karelzak.blogspot.com > Hi Karel, Thanks for fixing it. I tested the pull request and it looks good to me. Best Regards, Sumanth