From mboxrd@z Thu Jan 1 00:00:00 1970 From: Kent Overstreet Subject: Re: label devices got removed after format Date: Thu, 11 Jul 2013 18:28:06 -0700 Message-ID: <20130712012806.GB17799@kmo-pixel> References: <51DE7E3A.5070709@profihost.ag> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <51DE7E3A.5070709-2Lf/h1ldwEHR5kwTpVNS9A@public.gmane.org> Sender: linux-bcache-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org To: Stefan Priebe - Profihost AG , Gabriel de Perthuis Cc: linux-bcache-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-Id: linux-bcache@vger.kernel.org On Thu, Jul 11, 2013 at 11:43:22AM +0200, Stefan Priebe - Profihost AG wrote: > Hi, > > after doing mkfs.xfs -f /dev/bcache/by-label/mybcachelabel > > /dev/bcache/by-label/mybcachelabel gots removed... > > Only a reboot brings it back. > > Stefan Gabriel - I bet the uevent bcache is emitting is conflicting with the name of an existing label uevent; there'll be a symlink for the filesystem's label - for the same block device - so the mkfs could be causing another uevent to be emitted overwriting our label. Or maybe the conflict is a bit more subtle - anyways, you added the label uevent code, think you might be able to figure it out?