Skip to content

Add blockconsole version 1.1 (try 2)

Joern Engel lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 19 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9do_mounts: constify name_to_dev_t parameterinclude/linux/mount.h init/do_mounts.c+2 -20 replies
2/9add blockconsole version 1.1Documentation/block/blockconsole.txt Documentation/block/blockconsole/bcon_tail Documentation/block/blockconsole/mkblockconsole +8 more+849 -00 replies
3/9printk: add CON_ALLDATA console flaginclude/linux/console.h kernel/printk.c+4 -27 replies
4/9netconsole: use CON_ALLDATAdrivers/net/netconsole.c+1 -10 replies
5/9blockconsole: use CON_ALLDATAdrivers/block/blockconsole.c+1 -15 replies
6/9bcon: add a release work structdrivers/block/blockconsole.c+13 -20 replies
7/9bcon: check for hdparm in bcon_tailDocumentation/block/blockconsole/bcon_tail+5 -00 replies
8/9blockconsole: Allow to pass a device file path to bcon_tailDocumentation/block/blockconsole/bcon_tail+15 -00 replies
9/9bcon: remove version 1.0 supportdrivers/block/blockconsole.c+2 -170 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/9] Add blockconsole version 1.1 (try 2)

Blockconsole is a console driver very roughly similar to netconsole. Instead of sending messages out via UDP, they are written to a block device. Typically a USB stick is chosen, although in principle any block device will do.

In most cases blockconsole is useful where netconsole is not, i.e. single machines without network access or without an accessable netconsole capture server. When using both blockconsole and netconsole, I have found netconsole to sometimes create a mess under high message load (sysrq-t, etc.) while blockconsole does not.

Most importantly, a number of bugs were identified and fixed that would have been unexplained machine reboots without blockconsole.

More highlights:
* reasonably small and self-contained code,
* some 100+ machine years of runtime,
* nice tutorial with a 30-sec guide for the impatient.

Special thanks to Borislav Petkov for many improvements and kicking my behind to provide a proper git tree and resend patches.

A number of cleanup patches could be folded into the main patch, but I decided not to mess with git history and leave any further mistakes for the world to laugh at:
git://git.kernel.org/pub/scm/linux/kernel/git/joern/bcon2.git

Joern Engel (8):
do_mounts: constify name_to_dev_t parameter
add blockconsole version 1.1
printk: add CON_ALLDATA console flag
netconsole: use CON_ALLDATA
blockconsole: use CON_ALLDATA
bcon: add a release work struct
bcon: check for hdparm in bcon_tail
bcon: remove version 1.0 support

Takashi Iwai (1):
blockconsole: Allow to pass a device file path to bcon_tail

 Documentation/block/blockconsole.txt            |   94 ++++
 Documentation/block/blockconsole/bcon_tail      |   82 +++
 Documentation/block/blockconsole/mkblockconsole |   29 ++
 block/partitions/Makefile                       |    1 +
 block/partitions/blockconsole.c                 |   22 +
 block/partitions/check.c                        |    3 +
 block/partitions/check.h                        |    3 +
 drivers/block/Kconfig                           |    6 +
 drivers/block/Makefile                          |    1 +
 drivers/block/blockconsole.c                    |  617 +++++++++++++++++++++++
 drivers/net/netconsole.c                        |    2 +-
 include/linux/blockconsole.h                    |    7 +
 include/linux/console.h                         |    1 +
 include/linux/mount.h                           |    2 +-
 init/do_mounts.c                                |    2 +-
 kernel/printk.c                                 |    5 +-
 16 files changed, 872 insertions(+), 5 deletions(-)
 create mode 100644 Documentation/block/blockconsole.txt
 create mode 100755 Documentation/block/blockconsole/bcon_tail
 create mode 100755 Documentation/block/blockconsole/mkblockconsole
 create mode 100644 block/partitions/blockconsole.c
 create mode 100644 drivers/block/blockconsole.c
 create mode 100644 include/linux/blockconsole.h
Signature · 1 line
1.7.10.4