Thread (3 messages) 3 messages, 2 authors, 2013-08-17

Re: Can't enable writeback

From: Nick Payne <hidden>
Date: 2013-08-17 21:39:05

On 17/08/13 22:56, Gabriel de Perthuis wrote:
quoted
I try to enable writeback:

    sudo echo writeback > /sys/block/bcache0/cache_mode

it returns the error

    bash: /sys/block/bcache0/cache_mode: No such file or directory
You're confusing bcache0 with bcache0/bcache

     echo writeback |sudo tee -a /sys/block/bcache0/bcache/cache_mode

will work.
Thanks, that works. The command I was originally trying to use is what 
is shown in the documentation at 
http://evilpiepirate.org/git/linux-bcache.git/tree/Documentation/bcache.txt. 
It has

     # echo writeback > /sys/block/bcache0/cache_mode

as the command to run.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help