Thread (5 messages) 5 messages, 3 authors, 2017-01-27

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

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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help