From: "Jörn Engel" <joern@logfs.org>
To: Tvrtko Ursulin <tvrtko.ursulin@onelan.co.uk>
Cc: Andrew Morton <akpm@linux-foundation.org>,
linux-kernel@vger.kernel.org, Jeff Moyer <jmoyer@redhat.com>,
Steve Hodgson <steve@purestorage.com>
Subject: Re: [PATCH] add blockconsole version 1.1
Date: Mon, 23 Jul 2012 16:02:30 -0400 [thread overview]
Message-ID: <20120723200230.GC17767@logfs.org> (raw)
In-Reply-To: <201207231533.16350.tvrtko.ursulin@onelan.co.uk>
On Mon, 23 July 2012 15:33:16 +0100, Tvrtko Ursulin wrote:
> On Thursday 12 Jul 2012 18:46:34 Jörn Engel wrote:
> > Console driver similar to netconsole, except it writes to a block
> > device. Can be useful in a setup where netconsole, for whatever
> > reasons, is impractical.
>
> Perhaps you need to add a word or two about limitations compared to netconsole
> in documentation because it is quite significant difference in reliability? I
> mean so it is not assumed it is analogous to netconsole but just a different
> underlying media. I don't know if someone would expect it, but better said
> than not.
Given that I don't even know the limitations, that's a bit tough. As
a general rule, I would always prefer netconsole. It appears to be
more reliable than blockconsole and beats serial console by half a
lightyear. But as a fallback when netconsole is not realistic,
blockconsole has proven useful.
> I second the notion that logging to partitions would be useful.
Below is a compile-tested patch to do that. Feel free to give it a
spin and fix any bugs.
> Also, and I haven't checked what the swap format is, if it could somehow be
> integrated together that could be useful.
That appears to be slightly less likely than crossbreeding a rabbit
with a chicken. Is there something obvious I have missed?
Jörn
--
The story so far:
In the beginning the Universe was created. This has made a lot
of people very angry and been widely regarded as a bad move.
-- Douglas Adams
[PATCH 2/2] bcon: Add a module parameter to support partitions
The usual methods of hooking into the partition scanner does not work
for partitions. Allow those who care to pass in a module parameter.
Signed-off-by: Joern Engel <joern@logfs.org>
---
drivers/block/blockconsole.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/drivers/block/blockconsole.c b/drivers/block/blockconsole.c
index 09f239c..91c27ce 100644
--- a/drivers/block/blockconsole.c
+++ b/drivers/block/blockconsole.c
@@ -10,6 +10,7 @@
#include <linux/kref.h>
#include <linux/kthread.h>
#include <linux/mm.h>
+#include <linux/moduleparam.h>
#include <linux/mount.h>
#include <linux/random.h>
#include <linux/slab.h>
@@ -543,6 +544,14 @@ static void bcon_create_fuzzy(const char *name)
}
}
+static int bcon_setup(const char *val, struct kernel_param *kp)
+{
+ bcon_create_fuzzy(val);
+ return 0;
+}
+
+module_param_call(device, bcon_setup, NULL, NULL, 0200);
+
static DEFINE_SPINLOCK(device_lock);
static char scanned_devices[80];
--
1.7.10.4
next prev parent reply other threads:[~2012-07-23 21:16 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-24 20:59 [RFC][PATCH] add blockconsole Jörn Engel
2012-04-25 13:42 ` Jeff Moyer
2012-04-25 13:25 ` Jörn Engel
2012-04-25 15:52 ` Jeff Moyer
2012-07-12 17:46 ` [PATCH] add blockconsole version 1.1 Jörn Engel
2012-07-13 13:03 ` Borislav Petkov
2012-07-13 16:20 ` Jörn Engel
2012-07-13 21:14 ` Borislav Petkov
2012-07-16 12:46 ` Borislav Petkov
2012-07-18 18:53 ` Jörn Engel
2012-07-18 21:45 ` Borislav Petkov
2012-07-18 21:08 ` Jörn Engel
2012-07-19 9:26 ` Borislav Petkov
2012-07-23 20:04 ` Jörn Engel
2012-07-24 15:42 ` Borislav Petkov
2012-07-24 14:53 ` Jörn Engel
2012-07-24 16:25 ` Borislav Petkov
2012-07-24 17:52 ` Jörn Engel
2012-07-24 20:28 ` Borislav Petkov
2012-12-19 10:20 ` Borislav Petkov
2012-08-14 11:54 ` Jan Engelhardt
2012-07-23 14:33 ` Tvrtko Ursulin
2012-07-23 20:02 ` Jörn Engel [this message]
2012-07-24 8:01 ` Tvrtko Ursulin
2012-07-24 14:38 ` Jörn Engel
2012-07-25 8:17 ` Tvrtko Ursulin
2012-07-25 16:39 ` Jörn Engel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120723200230.GC17767@logfs.org \
--to=joern@logfs.org \
--cc=akpm@linux-foundation.org \
--cc=jmoyer@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=steve@purestorage.com \
--cc=tvrtko.ursulin@onelan.co.uk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).