Linux bcache driver list
 help / color / mirror / Atom feed
From: Kent Overstreet <koverstreet-hpIqsD4AKlfQT0dZR+AlfA@public.gmane.org>
To: Andrew Thrift <andrew-3e6jenk95VYpDvLZ8AWkcaVXKuFTiq87@public.gmane.org>
Cc: linux-bcache-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: Registering bcache devices
Date: Tue, 22 Jan 2013 16:54:33 -0800	[thread overview]
Message-ID: <20130123005433.GG26407@google.com> (raw)
In-Reply-To: <50FF342C.60605-3e6jenk95VYpDvLZ8AWkcaVXKuFTiq87@public.gmane.org>

On Wed, Jan 23, 2013 at 01:51:56PM +1300, Andrew Thrift wrote:
> Hi,
> 
> I am attempting to get bcache devices to register by echoing all
> /dev/sd* and /dev/dm-* to the bcache registration in /sys but get
> the following:
> 
> echo /dev/dm-* > /sys/fs/bcache/register
> bash: echo: write error: Invalid argument
> 
> echo /dev/sd* > /sys/fs/bcache/register
> bash: echo: write error: Invalid argument
> 
> 
> I am using a 3.7 kernel pulled from 4747cd9 revision.
> 
> Is this a bug, or am I just "doing it wrong" ?

You've got to echo them one at a time, like so:

for i in `ls /dev/sd*`; do
	echo    $i > /sys/fs/bcache/register_quiet
done

(initramfs/script in bcache-tools does this)

      parent reply	other threads:[~2013-01-23  0:54 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-23  0:51 Registering bcache devices Andrew Thrift
     [not found] ` <50FF342C.60605-3e6jenk95VYpDvLZ8AWkcaVXKuFTiq87@public.gmane.org>
2013-01-23  0:54   ` Kent Overstreet [this message]

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=20130123005433.GG26407@google.com \
    --to=koverstreet-hpiqsd4aklfqt0dzr+alfa@public.gmane.org \
    --cc=andrew-3e6jenk95VYpDvLZ8AWkcaVXKuFTiq87@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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox