From: Brad Campbell <brad-+nnirC7rrGZibQn6LdNjmg@public.gmane.org>
To: Kent Overstreet <koverstreet-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
Cc: linux-bcache-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: New version up with fix for md and other block devices
Date: Tue, 29 Nov 2011 15:31:48 +0800 [thread overview]
Message-ID: <4ED48A64.4080406@fnarfbargle.com> (raw)
In-Reply-To: <20111129063126.GA14194-RcKxWJ4Cfj3IzGYXcIpNmNLIRw13R84JkQQo+JxHRPFibQn6LdNjmg@public.gmane.org>
On 29/11/11 14:31, Kent Overstreet wrote:
>> I need to use this :
>> for i in /dev/sd? /dev/md* ; do [ -n "`/sbin/probe-bcache $i`" ]&&
>> echo $i> /sys/fs/bcache/register_quiet ; done
>>
>> Now, it does not actually need the test in there, however that stops
>> it spewing "write error: Invalid argument" onto the console when you
>> echo a device that does not have a bcache superblock.
>>
>> It does NOT like you accidentally trying to register a device twice :
>
> Eesh. That's annoying.
>
> I suppose really the bcache symlink in the /sys/block/bcacheN directory
> is incorrect - without that stacking _ought_ to work and I'm not sure
> it's possible to reliably detect stacking anyways.
I'm not sure that stacking is the issue. I simply did
echo /dev/md10 > /sys/fs/bcache/register
echo /dev/md10 > /sys/fs/bcache/register
at that point it all came crashing down. I'd have thought simply
detecting that a particular device was already registered would solve
the problem.
> Very annoying though - that symlink is very handy. Argh.
>
> hm. maybe I could check the make_request_fn to detect stacking and
> prevent it that way...
>
> No other issues, I take it?
Well, I had intended to run some tests with it stacked on top of md, but
as I pointed out in the last oops in my prior mail, every time I try and
attach the cache set to /dev/md10 the machine panics, so I've not really
progressed to actually trying things out. I figured re-running the tests
I'd already run with it stacked on a single drive was pretty pointless.
Regards,
Brad
next prev parent reply other threads:[~2011-11-29 7:31 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-11-21 10:14 New version up with fix for md and other block devices Kent Overstreet
[not found] ` <CAOzFzEjdhWtS9Q538+rM6LJm0ncx_MZg++3TCag3jr68F2=1uA@mail.gmail.com>
[not found] ` <CAOzFzEjdhWtS9Q538+rM6LJm0ncx_MZg++3TCag3jr68F2=1uA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-11-21 10:26 ` Kent Overstreet
[not found] ` <20111121101402.GA17787-RcKxWJ4Cfj3IzGYXcIpNmNLIRw13R84JkQQo+JxHRPFibQn6LdNjmg@public.gmane.org>
2011-11-29 6:10 ` Brad Campbell
[not found] ` <4ED47771.9030309-+nnirC7rrGZibQn6LdNjmg@public.gmane.org>
2011-11-29 6:31 ` Kent Overstreet
[not found] ` <20111129063126.GA14194-RcKxWJ4Cfj3IzGYXcIpNmNLIRw13R84JkQQo+JxHRPFibQn6LdNjmg@public.gmane.org>
2011-11-29 7:31 ` Brad Campbell [this message]
[not found] ` <4ED48A64.4080406-+nnirC7rrGZibQn6LdNjmg@public.gmane.org>
2011-11-29 7:54 ` Kent Overstreet
[not found] ` <20111129075440.GB14194-RcKxWJ4Cfj3IzGYXcIpNmNLIRw13R84JkQQo+JxHRPFibQn6LdNjmg@public.gmane.org>
2011-11-29 8:30 ` Brad Campbell
[not found] ` <4ED4981E.6040501-+nnirC7rrGZibQn6LdNjmg@public.gmane.org>
2011-11-29 8:45 ` Kent Overstreet
[not found] ` <20111129084544.GA16225-RcKxWJ4Cfj3IzGYXcIpNmNLIRw13R84JkQQo+JxHRPFibQn6LdNjmg@public.gmane.org>
2011-12-03 6:27 ` Kent Overstreet
2011-12-06 3:45 ` Kent Overstreet
2011-12-06 4:02 ` Kent Overstreet
[not found] ` <CAC7rs0saVh=a587mNCTCJwbVi7-u7kRuXu6-pZuJ6CRs1AACsw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-12-06 4:41 ` Kent Overstreet
[not found] ` <CAC7rs0ttY4Ama4v7yTepVTc65TyCo3+T4aPFoHJW1CwA8mDuUA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-12-06 6:01 ` Kent Overstreet
[not found] ` <CAH+dOxLW71YKpC1YL61osFq6oDVWxoj4ajLht3EqMUiWTYogTA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-12-09 2:18 ` Brad Campbell
[not found] ` <4EE16FED.5080809-+nnirC7rrGZibQn6LdNjmg@public.gmane.org>
2011-12-09 10:01 ` Kent Overstreet
[not found] ` <CAC7rs0tnhwAhQF53nTnHsdnnFOKpbG1BvAE5EcbbvsFWR-_6RA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-12-09 13:00 ` Brad Campbell
2011-11-29 9:16 ` Kent Overstreet
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=4ED48A64.4080406@fnarfbargle.com \
--to=brad-+nnirc7rrgzibqn6ldnjmg@public.gmane.org \
--cc=koverstreet-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org \
--cc=linux-bcache-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.