Re: make-bcache bug?

Marc MERLIN
2017-05-14T18:01:31Z

On Sun, May 14, 2017 at 10:58:40AM -0700, Marc MERLIN wrote:
> bcache-tools (1.0.8-2+b1)
>
> gargamel:~# make-bcache -C /dev/sde2
> Already a bcache device on /dev/sde2, overwrite with --wipe-bcache
> gargamel:~# make-bcache --wipe-bcache -C /dev/sde2
> Device /dev/sde2 already has a non-bcache superblock, remove it using wipefs and wipefs -a
>
> /dev/sde2 is an old bcache I'm reformatting.
> The first message is correct
> The 2nd one is not "/dev/sde2 already has a non-bcache superblock"
>
> Clearly it can't have a bcache and not a bcache superblock, right?

Interesting, same problem/bug with -B:
gargamel:~# make-bcache -B /dev/md8
Already a bcache device on /dev/md8, overwrite with --wipe-bcache
gargamel:~# make-bcache --wipe-bcache -B /dev/md8
Device /dev/md8 already has a non-bcache superblock, remove it using wipefs and wipefs -a

Marc
--
"A mouse is a device used to point at the xterm you want to type in" - A.S.R.
Microsoft is to operating systems ....
.... what McDonalds is to gourmet cooking
Home page: http://marc.merlins.org/ | PGP 1024R/763BE901