From mboxrd@z Thu Jan 1 00:00:00 1970 From: Gabriel de Perthuis Subject: Re: Detaching a cachine device Date: Sun, 15 Sep 2013 17:20:01 +0200 Message-ID: <5235D021.8040501@gmail.com> References: <5235CD22.8000507@rolffokkens.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <5235CD22.8000507-6w2rdlBuEQTpMFipWq+H6g@public.gmane.org> Sender: linux-bcache-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Rolf Fokkens Cc: linux-bcache-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-bcache@vger.kernel.org > I'm probably overlooking the obvious, but (as part of a test) I want > to replace my caching device with a bigger one. So I think the first > step should to detach the current caching device. I can find > instructions about detaching a backing device, but that's not wat I > want (the backing device holds the (slow) data, the important data). > I can't figure out though how to detach a caching the device. Cache sets have an 'unregister' action: /sys/fs/bcache//unregister The reference docs are in bcache.txt. http://atlas.evilpiepirate.org/git/linux-bcache.git/tree/Documentation/bcache.txt?h=bcache-dev#n367