Re: [PATCH] powerpc: opal-msglog: Report size of memcons log
From: Michael Ellerman <mpe@ellerman.id.au>
Date: 2017-01-23 08:32:21
From: Michael Ellerman <mpe@ellerman.id.au>
Date: 2017-01-23 08:32:21
Joel Stanley [off-list ref] 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