kmsg: /proc/kmsg - support reading of partial log records
authorKay Sievers <kay@vrfy.org>
Mon, 9 Jul 2012 17:05:10 +0000 (10:05 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 Jul 2012 17:05:10 +0000 (10:05 -0700)
commiteb02dac93708f581c99858a19162af8ca2b6bfcb
tree2e749f4599eff44107ecedea84eacd51a859a6a5
parent68b6507dc554ba015b5ed5e13b1ed4993cdf4024
kmsg: /proc/kmsg - support reading of partial log records

Restore support for partial reads of any size on /proc/kmsg, in case the
supplied read buffer is smaller than the record size.

Some people seem to think is is ia good idea to run:
  $ dd if=/proc/kmsg bs=1 of=...
as a klog bridge.

Resolves-bug: https://bugzilla.kernel.org/show_bug.cgi?id=44211
Reported-by: Jukka Ollila <jiiksteri@gmail.com>
Signed-off-by: Kay Sievers <kay@vrfy.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/printk.c