Hi Alex,

> Oh sure, the cache is persistent. But device discovery order is undefined, and
> if the backing device is no different from one without a cache and writeback
> caching is enabled the kernel has no *possible* way to know that a caching
> device is needed or even exists. So it mounts it, but it doesn't have any of 
> the
> data in the writeback cache meaning it thinks the filesystem is corrupted.
> Depending on the filesystem and exactly what is missing, it may run some
> in-kernel recovery code that alters the disk. You just lost your data.

nonono, I believe I wrote that the kernel
should *first* look for caching devices
and later for the others...

The formatting thing is, clearly, a much
standard approach, for the current kernel
architecture, but nothing forbids to have
a hierarchical search of devices.
This could be done, for example, by assigning
different classes to each device type, to
be scanned in a specific order. 

In this scope (not bcache, but device discovery)
it is already a problem a layered software RAID
with metadata 1.0 together with 1.2 (or 1.1).
Where the first lies at the end and the second
at the beginning of the HDDs, making it difficult
(but not impossible) to find out which is the
outer and which is the inner one.

bye,

-- 

piergiorgio
--
To unsubscribe from this list: send the line "unsubscribe linux-bcache" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to