All of lore.kernel.org
 help / color / mirror / Atom feed
* Registering bcache devices
@ 2013-01-23  0:51 Andrew Thrift
       [not found] ` <50FF342C.60605-3e6jenk95VYpDvLZ8AWkcaVXKuFTiq87@public.gmane.org>
  0 siblings, 1 reply; 2+ messages in thread
From: Andrew Thrift @ 2013-01-23  0:51 UTC (permalink / raw)
  To: linux-bcache-u79uwXL29TY76Z2rM5mHXA

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" ?


Regards,





Andrew Thrift

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Registering bcache devices
       [not found] ` <50FF342C.60605-3e6jenk95VYpDvLZ8AWkcaVXKuFTiq87@public.gmane.org>
@ 2013-01-23  0:54   ` Kent Overstreet
  0 siblings, 0 replies; 2+ messages in thread
From: Kent Overstreet @ 2013-01-23  0:54 UTC (permalink / raw)
  To: Andrew Thrift; +Cc: linux-bcache-u79uwXL29TY76Z2rM5mHXA

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)

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-01-23  0:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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.