Re: Formatting of backing device

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]




You can attach bcache to a drive with an existing file system, and it
will continue as normal.  If you connect to a drive without a file
system, then it will continue to not have a file system, but you can
format it while attached.

Attach/detach should work while the device is in use.  This isn't the
most tested code path, especially with writeback on, but it's supposed
to work.  Detaching while the cache is dirty requires flushing all
that data so performance will be bad until the detach completes.

Let us know if you find any bugs.

On Wed, Feb 1, 2012 at 2:10 AM, Piergiorgio Sartor
<piergiorgio.sartor@xxxxxxxx> wrote:
>
> Hi all,
>
> first of all I would like to congratulate for this
> project, I think it is one of the most promising
> feature the Linux kernel can have.
>
> Wrote that, I've a question about the concept of
> formatting the backing device.
>
> As far as I understood, the first concept of bcache
> was to simply "register" or "attach" a cache to a
> backing device, that is, the backing device had not
> to be formatted.
>
> Lately, still if I understood it correctly, this
> behaviour was changed and, now, the backing device
> needs to be formatted.
>
> So, the question is:
>
> How about an already running device? Is it still
> possible to attach a cache under such situation?
>
> In general, would it be possible to attach/detach
> a cache to any already available device (in the
> future)? Or the caching/backing setup must be planned
> before the HW is available, so to speak?
>
> It would be useful (and cool too), to have the
> possibility to attach/detach the SSD cache, on
> the fly (at run-time) to any device it needs it.
>
> I hope the question(s) are clear, if not please
> let me know.
>
> Thanks a lot in advance,
>
> bye,
>
> --
>
> piergiorgio
> --
> To unsubscribe from this list: send the line "unsubscribe linux-bcache" in
> the body of a message to majordomo@xxxxxxxxxxxxxxx
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-bcache" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]