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)
--
To unsubscribe from this list: send the line "unsubscribe linux-bcache" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to