[PATCH] powerpc: opal-msglog: Report size of memcons log

Michael Ellerman mpe at ellerman.id.au
Mon Jan 23 19:32:20 AEDT 2017


Joel Stanley <joel at jms.id.au> writes:

> The OPAL memory console is reported to be size zero, as we do not
> initialise the struct attr with any size information due to the size
> being variable. This leads users to think that the console is empty.

Hmm OK. That is a general property of /proc and /sys files that are
dynamically generated, so users probably need to get used to it :)

> Instead report the maximum size.

But OK. That sounds sane enough. My only worry is that it might confuse
some tools, ie. the file claims to be x bytes but is actually smaller.
But I guess that can actually happen anyway with any file.

So I'll merge this and stop blabbing :)

cheers


More information about the Linuxppc-dev mailing list