Re: Registering bcache devices

From
Kent Overstreet <hidden>
Date
2013-01-23 00:54:33
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)
Thread (1 message) 1 message, 1 author, last reply 2013-01-23
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help